Robert Shearman : ole32: Don'
t process posted messages in CoWaitForMultipleHandles.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Mar 30 05:44:06 CST 2006
Module: wine
Branch: refs/heads/master
Commit: 8c7706bad04b90f4f9a7c25d94a27309d0347c80
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=8c7706bad04b90f4f9a7c25d94a27309d0347c80
Author: Robert Shearman <rob at codeweavers.com>
Date: Wed Mar 29 18:40:46 2006 +0100
ole32: Don't process posted messages in CoWaitForMultipleHandles.
Tests with native show that during COM calls posted messages aren't
retrieved other than COM calls so change the PeekMessage parameters in
CoWaitForMultipleHandles to duplicate this.
---
dlls/ole32/compobj.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/ole32/compobj.c b/dlls/ole32/compobj.c
index ab87a5d..a82ed4a 100644
--- a/dlls/ole32/compobj.c
+++ b/dlls/ole32/compobj.c
@@ -2647,8 +2647,8 @@ static BOOL COM_PeekMessage(struct apart
{
/* 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 all other messages */
- PeekMessageW(msg, NULL, 0, 0, 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);
}
/***********************************************************************
More information about the wine-cvs
mailing list