Commit e487b560 authored by Alexandre Julliard's avatar Alexandre Julliard

kernel32: Make GetQueuedCompletionStatus return failure for I/O errors, as per MSDN.

parent 07c321ba
...@@ -2127,7 +2127,9 @@ BOOL WINAPI GetQueuedCompletionStatus( HANDLE CompletionPort, LPDWORD lpNumberOf ...@@ -2127,7 +2127,9 @@ BOOL WINAPI GetQueuedCompletionStatus( HANDLE CompletionPort, LPDWORD lpNumberOf
if (status == STATUS_SUCCESS) if (status == STATUS_SUCCESS)
{ {
*lpNumberOfBytesTransferred = iosb.Information; *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 ); if (status == STATUS_TIMEOUT) SetLastError( WAIT_TIMEOUT );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment