From 4e87b952b3a9c1291829dc076e0b3639a1c048a3 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 24 Feb 2015 16:19:26 +0900 Subject: [PATCH] user32/tests: Ignore WM_PAINT messages in GetMessagePos test. --- dlls/user32/tests/win.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dlls/user32/tests/win.c b/dlls/user32/tests/win.c index c6dee75e7c7..0b67eeacd34 100644 --- a/dlls/user32/tests/win.c +++ b/dlls/user32/tests/win.c @@ -8032,6 +8032,11 @@ static void test_GetMessagePos(void) SetTimer(button, 1, 250, NULL); SetCursorPos(330, 350); GetMessageA(&msg, button, 0, 0); + while (msg.message == WM_PAINT) + { + UpdateWindow( button ); + GetMessageA(&msg, button, 0, 0); + } ok(msg.message == WM_TIMER, "msg.message = %x\n", msg.message); pos = GetMessagePos(); todo_wine ok(pos == MAKELONG(330, 350), "pos = %08x\n", pos);