From 029a962bbdd123dcf8ff2e03f3398e4e76aa2f2a Mon Sep 17 00:00:00 2001 From: Vincent Povirk Date: Fri, 15 May 2009 13:35:25 -0500 Subject: [PATCH] ole32: process all sent and some posted messages in CoWaitForMultipleHandles --- dlls/ole32/compobj.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/dlls/ole32/compobj.c b/dlls/ole32/compobj.c index 4440d77..77933d9 100644 --- a/dlls/ole32/compobj.c +++ b/dlls/ole32/compobj.c @@ -3525,7 +3525,8 @@ static BOOL COM_PeekMessage(struct apartment *apt, MSG *msg) /* first try to retrieve messages for incoming COM calls to the apartment window */ return PeekMessageW(msg, apt->win, WM_USER, WM_APP - 1, PM_REMOVE|PM_NOYIELD) || /* next retrieve other messages necessary for the app to remain responsive */ - PeekMessageW(msg, NULL, 0, 0, PM_QS_PAINT|PM_QS_POSTMESSAGE|PM_REMOVE|PM_NOYIELD); + PeekMessageW(msg, NULL, 0, 0, PM_QS_PAINT|PM_QS_SENDMESSAGE|PM_REMOVE|PM_NOYIELD) || + PeekMessageW(msg, NULL, 0x3e0, 0x3e8, PM_QS_POSTMESSAGE|PM_REMOVE|PM_NOYIELD); } /*********************************************************************** -- 1.5.4.3