From a8c72b76cf1c5b5015f8c10e393cc408b450e69f Mon Sep 17 00:00:00 2001 From: Huw Davies Date: Mon, 12 Mar 2007 15:11:45 +0000 Subject: [PATCH] ole32: Only retrieve posted and paint messages in an STA message loop. --- dlls/ole32/compobj.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/ole32/compobj.c b/dlls/ole32/compobj.c index a5a322060b9..fe180aa4085 100644 --- a/dlls/ole32/compobj.c +++ b/dlls/ole32/compobj.c @@ -3128,7 +3128,7 @@ 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, WM_USER - 1, PM_REMOVE|PM_NOYIELD); + PeekMessageW(msg, NULL, 0, 0, PM_QS_PAINT|PM_QS_POSTMESSAGE|PM_REMOVE|PM_NOYIELD); } /***********************************************************************