ole32: Don't stop processing messages after WM_QUIT in CoWaitForMultipleHandles.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
98b44e793a
commit
2e66aa59b2
|
@ -4564,9 +4564,6 @@ HRESULT WINAPI CoWaitForMultipleHandles(DWORD dwFlags, DWORD dwTimeout,
|
|||
TRACE("received WM_QUIT message\n");
|
||||
post_quit = TRUE;
|
||||
exit_code = msg.wParam;
|
||||
/* no longer need to process messages */
|
||||
message_loop = FALSE;
|
||||
break;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -2971,10 +2971,8 @@ static void test_CoWaitForMultipleHandles(void)
|
|||
success = PeekMessageA(&msg, hWnd, WM_DDE_FIRST, WM_DDE_FIRST, PM_REMOVE);
|
||||
ok(success, "PeekMessageA failed, error %u\n", GetLastError());
|
||||
success = PeekMessageA(&msg, hWnd, WM_DDE_FIRST, WM_DDE_FIRST, PM_REMOVE);
|
||||
todo_wine
|
||||
ok(!success, "PeekMessageA succeeded\n");
|
||||
success = PeekMessageA(&msg, hWnd, WM_QUIT, WM_QUIT, PM_REMOVE);
|
||||
todo_wine
|
||||
ok(!success, "CoWaitForMultipleHandles didn't remove WM_QUIT messages\n");
|
||||
index = WaitForSingleObject(thread, 200);
|
||||
ok(index == WAIT_OBJECT_0, "WaitForSingleObject failed\n");
|
||||
|
@ -2991,7 +2989,6 @@ static void test_CoWaitForMultipleHandles(void)
|
|||
success = PeekMessageA(&msg, hWnd, WM_DDE_FIRST, WM_DDE_FIRST, PM_REMOVE);
|
||||
ok(success, "PeekMessageA failed, error %u\n", GetLastError());
|
||||
success = PeekMessageA(&msg, hWnd, WM_DDE_FIRST, WM_DDE_FIRST, PM_REMOVE);
|
||||
todo_wine
|
||||
ok(!success, "PeekMessageA succeeded\n");
|
||||
success = PeekMessageA(&msg, hWnd, WM_QUIT, WM_QUIT, PM_REMOVE);
|
||||
ok(!success, "CoWaitForMultipleHandles didn't remove WM_QUIT messages\n");
|
||||
|
|
Loading…
Reference in New Issue