Commit 9fd75e86 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

ole32/tests: Fix new failures in CoWaitForMultipleHandles tests.

parent 44c301c5
...@@ -2145,16 +2145,16 @@ static DWORD CALLBACK test_CoWaitForMultipleHandles_thread(LPVOID arg) ...@@ -2145,16 +2145,16 @@ static DWORD CALLBACK test_CoWaitForMultipleHandles_thread(LPVOID arg)
index = 0xdeadbeef; index = 0xdeadbeef;
PostMessageA(hWnd, WM_DDE_FIRST, 0, 0); PostMessageA(hWnd, WM_DDE_FIRST, 0, 0);
hr = CoWaitForMultipleHandles(0, 50, 2, handles, &index); hr = CoWaitForMultipleHandles(0, 50, 2, handles, &index);
ok(hr == RPC_S_CALLPENDING, "expected S_OK, got 0x%08x\n", hr); ok(hr == RPC_S_CALLPENDING, "expected RPC_S_CALLPENDING, got 0x%08x\n", hr);
ok(index == 0, "expected index 0, got %u\n", index); ok(index==0 || index==0xdeadbeef/* Win 8 */, "expected index 0, got %u\n", index);
success = PeekMessageA(&msg, hWnd, WM_DDE_FIRST, WM_DDE_FIRST, PM_REMOVE); success = PeekMessageA(&msg, hWnd, WM_DDE_FIRST, WM_DDE_FIRST, PM_REMOVE);
ok(!success, "CoWaitForMultipleHandles didn't pump any messages\n"); ok(!success, "CoWaitForMultipleHandles didn't pump any messages\n");
index = 0xdeadbeef; index = 0xdeadbeef;
PostMessageA(hWnd, WM_USER, 0, 0); PostMessageA(hWnd, WM_USER, 0, 0);
hr = CoWaitForMultipleHandles(0, 50, 2, handles, &index); hr = CoWaitForMultipleHandles(0, 50, 2, handles, &index);
ok(hr == RPC_S_CALLPENDING, "expected S_OK, got 0x%08x\n", hr); ok(hr == RPC_S_CALLPENDING, "expected RPC_S_CALLPENDING, got 0x%08x\n", hr);
ok(index == 0, "expected index 0, got %u\n", index); ok(index==0 || index==0xdeadbeef/* Win 8 */, "expected index 0, got %u\n", index);
success = PeekMessageA(&msg, hWnd, WM_USER, WM_USER, PM_REMOVE); success = PeekMessageA(&msg, hWnd, WM_USER, WM_USER, PM_REMOVE);
ok(success, "CoWaitForMultipleHandles unexpectedly pumped messages\n"); ok(success, "CoWaitForMultipleHandles unexpectedly pumped messages\n");
......
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