Author: jimtabor
Date: Tue Feb 23 04:08:16 2010
New Revision: 45664
URL:
http://svn.reactos.org/svn/reactos?rev=45664&view=rev
Log:
[Win32k]
- Properly assign error code when a real status error occurred.
- Free the non user event container for WaitForInputIdle.
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/message.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/message.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/message.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/message.c [iso-8859-1] Tue Feb 23
04:08:16 2010
@@ -1053,9 +1053,11 @@
while ( (STATUS_WAIT_0 <= Status && Status <= STATUS_WAIT_63) ||
STATUS_TIMEOUT == Status );
- SetLastNtError(Status);
-
- DPRINT1("Exit co_IntWaitMessage on error!\n");
+ if (!NT_SUCCESS(Status))
+ {
+ SetLastNtError(Status);
+ DPRINT1("Exit co_IntWaitMessage on error!\n");
+ }
return FALSE;
}
@@ -2626,7 +2628,7 @@
WaitExit:
if (W32Process->InputIdleEvent)
{
- EngDeleteEvent((PEVENT)W32Process->InputIdleEvent);
+ EngFreeMem((PVOID)W32Process->InputIdleEvent);
W32Process->InputIdleEvent = NULL;
}
ObDereferenceObject(Process);