Sorry, the last mail patch has a compile error. I have fixed it now. ------------------ Regards. ------------------ Original ------------------ From: "Changhui Liu"<liuchanghui(a)linuxdeepin.com>; Date: Mon, Dec 15, 2014 12:34 PM To: "Sebastian Lackner"<sebastian(a)fds-team.de>; Cc: "wine-devel"<wine-devel(a)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-CoW... Please help me review it again when you are free. Thank you. ------------------ Regards.