From c23cb51d523d0dc4e1701b56092472d3f6441809 Mon Sep 17 00:00:00 2001 From: Robert Shearman Date: Mon, 3 Oct 2005 11:02:37 +0000 Subject: [PATCH] Pass WM_QUIT to outer modal loop. --- dlls/ole32/compobj.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dlls/ole32/compobj.c b/dlls/ole32/compobj.c index 2202bd896ac..5f0995497c1 100644 --- a/dlls/ole32/compobj.c +++ b/dlls/ole32/compobj.c @@ -2622,6 +2622,12 @@ HRESULT WINAPI CoWaitForMultipleHandles(DWORD dwFlags, DWORD dwTimeout, TRACE("received message whilst waiting for RPC: 0x%04x\n", msg.message); TranslateMessage(&msg); DispatchMessageW(&msg); + if (msg.message == WM_QUIT) + { + TRACE("resending WM_QUIT to outer message loop\n"); + PostQuitMessage(msg.wParam); + goto done; + } } } else if ((res >= WAIT_OBJECT_0) && (res < WAIT_OBJECT_0 + cHandles)) @@ -2642,6 +2648,7 @@ HRESULT WINAPI CoWaitForMultipleHandles(DWORD dwFlags, DWORD dwTimeout, break; } } +done: TRACE("-- 0x%08lx\n", hr); return hr; }