msi: Process messages while waiting for custom actions to complete.
This commit is contained in:
parent
655e16f1c9
commit
353016f92f
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue