- Properly assign error code when a real status error occurred.
- Free the non user event container for WaitForInputIdle.

svn path=/trunk/; revision=45664
This commit is contained in:
James Tabor 2010-02-23 03:08:16 +00:00
parent b37ba9e7e6
commit 1441c052a2

View file

@ -1053,9 +1053,11 @@ co_IntWaitMessage( PWINDOW_OBJECT Window,
while ( (STATUS_WAIT_0 <= Status && Status <= STATUS_WAIT_63) ||
STATUS_TIMEOUT == Status );
if (!NT_SUCCESS(Status))
{
SetLastNtError(Status);
DPRINT1("Exit co_IntWaitMessage on error!\n");
}
return FALSE;
}
@ -2626,7 +2628,7 @@ NtUserWaitForInputIdle(
WaitExit:
if (W32Process->InputIdleEvent)
{
EngDeleteEvent((PEVENT)W32Process->InputIdleEvent);
EngFreeMem((PVOID)W32Process->InputIdleEvent);
W32Process->InputIdleEvent = NULL;
}
ObDereferenceObject(Process);