msi: Use MsgWaitForMultipleObjectsEx to do waits.

Vincent Povirk vincent at codeweavers.com
Thu Oct 13 13:36:36 CDT 2011


-------------- next part --------------
From 6acc4c85057f7606f81ac7984aaf022111745d7f Mon Sep 17 00:00:00 2001
From: Vincent Povirk <vincent at codeweavers.com>
Date: Thu, 13 Oct 2011 13:32:42 -0500
Subject: [PATCH] msi: Use MsgWaitForMultipleObjectsEx to do waits.

This lets us stay responsive to sent messages, preventing deadlocks in some
cases.
---
 dlls/msi/dialog.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/msi/dialog.c b/dlls/msi/dialog.c
index 7074a7b..8b10215 100644
--- a/dlls/msi/dialog.c
+++ b/dlls/msi/dialog.c
@@ -3787,7 +3787,7 @@ void msi_dialog_check_messages( HANDLE handle )
     if( uiThreadId != GetCurrentThreadId() )
     {
         if( handle )
-            WaitForSingleObject( handle, INFINITE );
+            MsgWaitForMultipleObjectsEx( 1, &handle, INFINITE, 0, 0 );
         return;
     }
 
-- 
1.7.4.1


More information about the wine-patches mailing list