Commit c23cb51d authored by Robert Shearman's avatar Robert Shearman Committed by Alexandre Julliard

Pass WM_QUIT to outer modal loop.

parent 02dce590
...@@ -2622,6 +2622,12 @@ HRESULT WINAPI CoWaitForMultipleHandles(DWORD dwFlags, DWORD dwTimeout, ...@@ -2622,6 +2622,12 @@ HRESULT WINAPI CoWaitForMultipleHandles(DWORD dwFlags, DWORD dwTimeout,
TRACE("received message whilst waiting for RPC: 0x%04x\n", msg.message); TRACE("received message whilst waiting for RPC: 0x%04x\n", msg.message);
TranslateMessage(&msg); TranslateMessage(&msg);
DispatchMessageW(&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)) else if ((res >= WAIT_OBJECT_0) && (res < WAIT_OBJECT_0 + cHandles))
...@@ -2642,6 +2648,7 @@ HRESULT WINAPI CoWaitForMultipleHandles(DWORD dwFlags, DWORD dwTimeout, ...@@ -2642,6 +2648,7 @@ HRESULT WINAPI CoWaitForMultipleHandles(DWORD dwFlags, DWORD dwTimeout,
break; break;
} }
} }
done:
TRACE("-- 0x%08lx\n", hr); TRACE("-- 0x%08lx\n", hr);
return hr; return hr;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment