kernel32: Make GetQueuedCompletionStatus return failure for I/O errors, as per MSDN.
This commit is contained in:
parent
07c321ba73
commit
e487b560d9
|
@ -2127,7 +2127,9 @@ BOOL WINAPI GetQueuedCompletionStatus( HANDLE CompletionPort, LPDWORD lpNumberOf
|
|||
if (status == STATUS_SUCCESS)
|
||||
{
|
||||
*lpNumberOfBytesTransferred = iosb.Information;
|
||||
return TRUE;
|
||||
if (iosb.u.Status >= 0) return TRUE;
|
||||
SetLastError( RtlNtStatusToDosError(iosb.u.Status) );
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (status == STATUS_TIMEOUT) SetLastError( WAIT_TIMEOUT );
|
||||
|
|
Loading…
Reference in New Issue