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 */
|
/* in threads other than the UI thread, block */
|
||||||
if( uiThreadId != GetCurrentThreadId() )
|
if( uiThreadId != GetCurrentThreadId() )
|
||||||
{
|
{
|
||||||
if( handle )
|
if (!handle) return;
|
||||||
MsgWaitForMultipleObjectsEx( 1, &handle, INFINITE, 0, 0 );
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue