Commit 8c551796 authored by Robert Shearman's avatar Robert Shearman Committed by Alexandre Julliard

ole32: Whether the message loop is entered in CoWaitForMultipleHandles,

should depend on whether the current apartment is a single threaded one.
parent 3091aa53
......@@ -2673,7 +2673,8 @@ HRESULT WINAPI CoWaitForMultipleHandles(DWORD dwFlags, DWORD dwTimeout,
{
HRESULT hr = S_OK;
DWORD start_time = GetTickCount();
BOOL message_loop = TRUE;
APARTMENT *apt = COM_CurrentApt();
BOOL message_loop = apt && !apt->multi_threaded;
TRACE("(0x%08lx, 0x%08lx, %ld, %p, %p)\n", dwFlags, dwTimeout, cHandles,
pHandles, lpdwindex);
......
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