mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:19:49 +00:00
msi: Process messages while waiting for custom actions to complete.
This commit is contained in:
parent
655e16f1c9
commit
353016f92f
1 changed files with 10 additions and 2 deletions
|
@ -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 a new issue