[KERNEL32]

- Fix error status of GetQueuedCompletionStatus, which should set the error to WAIT_TIMEOUT
- Fixes 4 failing winetests 
- Patch by Samuel Serapion (samcharly_hotmail_com)

See issue #6907 for more details.

svn path=/trunk/; revision=55673
This commit is contained in:
Johannes Anderwald 2012-02-17 16:11:40 +00:00
parent 484671d6c8
commit 301809cb8d

View file

@ -123,7 +123,12 @@ GetQueuedCompletionStatus(
if (!NT_SUCCESS(errCode) || errCode == STATUS_TIMEOUT) {
*lpOverlapped = NULL;
BaseSetLastNTError(errCode);
if(errCode == STATUS_TIMEOUT)
SetLastError(WAIT_TIMEOUT);
else
BaseSetLastNTError(errCode);
return FALSE;
}