mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 20:59:54 +00:00
Pass WM_QUIT to outer modal loop.
This commit is contained in:
parent
02dce5900e
commit
c23cb51d52
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user