Commit 353016f9 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

msi: Process messages while waiting for custom actions to complete.

parent 655e16f1
......@@ -3786,8 +3786,16 @@ void msi_dialog_check_messages( HANDLE handle )
/* in threads other than the UI thread, block */
if( uiThreadId != GetCurrentThreadId() )
{
if( handle )
MsgWaitForMultipleObjectsEx( 1, &handle, INFINITE, 0, 0 );
if (!handle) return;
while (MsgWaitForMultipleObjectsEx( 1, &handle, INFINITE, QS_ALLINPUT, 0 ) == WAIT_OBJECT_0 + 1)
{
MSG msg;
while (PeekMessageW( &msg, NULL, 0, 0, PM_REMOVE ))
{
TranslateMessage( &msg );
DispatchMessageW( &msg );
}
}
return;
}
......
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