mirror of
https://github.com/reactos/reactos.git
synced 2024-11-18 21:13:52 +00:00
[Win32k]
- 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:
parent
b37ba9e7e6
commit
1441c052a2
1 changed files with 6 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue