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

This commit is contained in:
Hans Leidekker 2011-11-10 11:38:28 +01:00 committed by Alexandre Julliard
parent 655e16f1c9
commit 353016f92f

View file

@ -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;
}