Author: janderwald
Date: Fri Feb 17 16:11:40 2012
New Revision: 55673
URL:
http://svn.reactos.org/svn/reactos?rev=55673&view=rev
Log:
[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.
Modified:
trunk/reactos/dll/win32/kernel32/client/file/iocompl.c
Modified: trunk/reactos/dll/win32/kernel32/client/file/iocompl.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/client/…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/client/file/iocompl.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/client/file/iocompl.c [iso-8859-1] Fri Feb 17
16:11:40 2012
@@ -123,7 +123,12 @@
if (!NT_SUCCESS(errCode) || errCode == STATUS_TIMEOUT) {
*lpOverlapped = NULL;
- BaseSetLastNTError(errCode);
+
+ if(errCode == STATUS_TIMEOUT)
+ SetLastError(WAIT_TIMEOUT);
+ else
+ BaseSetLastNTError(errCode);
+
return FALSE;
}