Commit c47e32a7 authored by Alexandre Julliard's avatar Alexandre Julliard

kernel32: Fix the last error code for timeout in GetQueuedCompletionStatus.

parent 50171c5c
...@@ -2230,7 +2230,8 @@ BOOL WINAPI GetQueuedCompletionStatus( HANDLE CompletionPort, LPDWORD lpNumberOf ...@@ -2230,7 +2230,8 @@ BOOL WINAPI GetQueuedCompletionStatus( HANDLE CompletionPort, LPDWORD lpNumberOf
return TRUE; return TRUE;
} }
SetLastError( RtlNtStatusToDosError(status) ); if (status == STATUS_TIMEOUT) SetLastError( WAIT_TIMEOUT );
else SetLastError( RtlNtStatusToDosError(status) );
return FALSE; return FALSE;
} }
......
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