quartz/tests: Filter out extraneous messages in test_video_window_messages().

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2019-10-09 23:15:07 -05:00 committed by Alexandre Julliard
parent d4a0c0f502
commit 4d4e3e4045
1 changed files with 2 additions and 2 deletions

View File

@ -1881,7 +1881,7 @@ static void test_video_window_messages(IVideoWindow *window, HWND hwnd, HWND our
for (i = 0; i < ARRAY_SIZE(drain_tests); ++i)
{
SendMessageA(hwnd, drain_tests[i], 0xdeadbeef, 0);
ret = PeekMessageA(&msg, 0, 0, 0, PM_REMOVE);
ret = PeekMessageA(&msg, 0, drain_tests[i], drain_tests[i], PM_REMOVE);
ok(ret, "Expected a message.\n");
ok(msg.hwnd == our_hwnd, "Got hwnd %p.\n", msg.hwnd);
ok(msg.message == drain_tests[i], "Got message %#x.\n", msg.message);
@ -1889,7 +1889,7 @@ static void test_video_window_messages(IVideoWindow *window, HWND hwnd, HWND our
ok(!msg.lParam, "Got lparam %#lx.\n", msg.lParam);
DispatchMessageA(&msg);
ret = PeekMessageA(&msg, 0, 0, 0, PM_REMOVE);
ret = PeekMessageA(&msg, 0, drain_tests[i], drain_tests[i], PM_REMOVE);
ok(!ret, "Got unexpected message %#x.\n", msg.message);
}