Huw Davies : ole32: Only retrieve posted and paint messages in an STA message loop.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Mar 13 07:55:56 CDT 2007


Module: wine
Branch: master
Commit: a8c72b76cf1c5b5015f8c10e393cc408b450e69f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=a8c72b76cf1c5b5015f8c10e393cc408b450e69f

Author: Huw Davies <huw at codeweavers.com>
Date:   Mon Mar 12 15:11:45 2007 +0000

ole32: Only retrieve posted and paint messages in an STA message loop.

---

 dlls/ole32/compobj.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/ole32/compobj.c b/dlls/ole32/compobj.c
index a5a3220..fe180aa 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);
 }
 
 /***********************************************************************




More information about the wine-cvs mailing list