Sorry, the last mail patch has a compile error.
I have fixed it now.





------------------
Regards.
 
 
 
------------------ Original ------------------
Date:  Mon, Dec 15, 2014 12:34 PM
To:  "Sebastian Lackner"<sebastian@fds-team.de>;
Cc:  "wine-devel"<wine-devel@winehq.org>;
Subject:  Re: ole32:fix CoWaitForMultipleHandles cause RPC hang
 
Hi,
I got it. The CoWaitForMultipleHandles of Microsoft implement is this:
The message loop continue although has received WM_QUIT,
but just dispatch message who sent to the OleMainThreadWndClass Window.

I attached a latest patch and a verify function.
Run the test_CoWaitForMultipleHandlesDispatchMsg, We will only get the
message who send to cowait_test_class window .  

It also pass your PeekMessage test at:
https://github.com/wine-compholio/wine-staging/blob/master/patches/ole32-CoWaitForMultipleHandles/0001-ole32-tests-Add-additional-tests-for-CoWaitForMultip.patch

Please help me review it again when you are free.
Thank you.






------------------
Regards.