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:
Robert Shearman 2006-03-29 18:38:42 +01:00 committed by Alexandre Julliard
parent 3091aa5302
commit 8c551796a9
1 changed files with 2 additions and 1 deletions

View File

@ -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);