[*] Only send ack if requested

This commit is contained in:
Reece Wilson 2022-04-03 03:44:59 +01:00
parent 603c68f3ca
commit 3650599064

View File

@ -275,11 +275,6 @@ namespace Aurora::IO::FS
{
DWORD bytesTransferred;
if (this->bReschedule)
{
return ScheduleOnce();
}
if (this->bBroken || GetOverlappedResult(this->hFileHandle, &this->ntOverlapped, &bytesTransferred, false))
{
this->bBroken = true;
@ -319,6 +314,7 @@ namespace Aurora::IO::FS
bool success {true};
// if (bAnyTriggered)
if (this->whoAsked_.Flags & REQUEST_OPLOCK_OUTPUT_FLAG_ACK_REQUIRED)
{
success = ScheduleOnce();
}