Commit c40239d9 authored by Alexandre Julliard's avatar Alexandre Julliard

ntoskrnl: Allow running user APC inside the device manager loop.

parent 33e9798f
......@@ -244,10 +244,15 @@ NTSTATUS CDECL wine_ntoskrnl_main_loop( HANDLE stop_event )
/* restart with larger buffer */
break;
case STATUS_PENDING:
if (WaitForMultipleObjects( 2, handles, FALSE, INFINITE ) == WAIT_OBJECT_0)
for (;;)
{
HeapFree( GetProcessHeap(), 0, in_buff );
return STATUS_SUCCESS;
DWORD ret = WaitForMultipleObjectsEx( 2, handles, FALSE, INFINITE, TRUE );
if (ret == WAIT_OBJECT_0)
{
HeapFree( GetProcessHeap(), 0, in_buff );
return STATUS_SUCCESS;
}
if (ret != WAIT_IO_COMPLETION) break;
}
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment