Commit c40239d9 authored by Alexandre Julliard's avatar Alexandre Julliard

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

parent 33e9798f
...@@ -244,11 +244,16 @@ NTSTATUS CDECL wine_ntoskrnl_main_loop( HANDLE stop_event ) ...@@ -244,11 +244,16 @@ NTSTATUS CDECL wine_ntoskrnl_main_loop( HANDLE stop_event )
/* restart with larger buffer */ /* restart with larger buffer */
break; break;
case STATUS_PENDING: case STATUS_PENDING:
if (WaitForMultipleObjects( 2, handles, FALSE, INFINITE ) == WAIT_OBJECT_0) for (;;)
{
DWORD ret = WaitForMultipleObjectsEx( 2, handles, FALSE, INFINITE, TRUE );
if (ret == WAIT_OBJECT_0)
{ {
HeapFree( GetProcessHeap(), 0, in_buff ); HeapFree( GetProcessHeap(), 0, in_buff );
return STATUS_SUCCESS; return STATUS_SUCCESS;
} }
if (ret != WAIT_IO_COMPLETION) break;
}
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