ole32: Whether the message loop is entered in CoWaitForMultipleHandles,
should depend on whether the current apartment is a single threaded one.
This commit is contained in:
parent
3091aa5302
commit
8c551796a9
|
@ -2673,7 +2673,8 @@ HRESULT WINAPI CoWaitForMultipleHandles(DWORD dwFlags, DWORD dwTimeout,
|
||||||
{
|
{
|
||||||
HRESULT hr = S_OK;
|
HRESULT hr = S_OK;
|
||||||
DWORD start_time = GetTickCount();
|
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,
|
TRACE("(0x%08lx, 0x%08lx, %ld, %p, %p)\n", dwFlags, dwTimeout, cHandles,
|
||||||
pHandles, lpdwindex);
|
pHandles, lpdwindex);
|
||||||
|
|
Loading…
Reference in New Issue