kernel32: Fix the last error code for timeout in GetQueuedCompletionStatus.
This commit is contained in:
parent
50171c5cc1
commit
c47e32a7cc
@ -2230,7 +2230,8 @@ BOOL WINAPI GetQueuedCompletionStatus( HANDLE CompletionPort, LPDWORD lpNumberOf
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
SetLastError( RtlNtStatusToDosError(status) );
|
||||
if (status == STATUS_TIMEOUT) SetLastError( WAIT_TIMEOUT );
|
||||
else SetLastError( RtlNtStatusToDosError(status) );
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user