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

This commit is contained in:
Huw Davies 2007-03-12 15:11:45 +00:00 committed by Alexandre Julliard
parent 6fcff278b3
commit a8c72b76cf
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
/***********************************************************************