Skip to content
Snippets Groups Projects
Commit 8c551796 authored by Robert Shearman's avatar Robert Shearman Committed by Alexandre Julliard
Browse files

ole32: Whether the message loop is entered in CoWaitForMultipleHandles,

should depend on whether the current apartment is a single threaded one.
parent 3091aa53
Branches
Tags
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment