From 9c27ed21a238abdaa57918030983f7d03ff927a8 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 17 Sep 2007 14:13:37 +0200 Subject: [PATCH] user32/tests: Properly flush events in the update rect tests. --- dlls/user32/tests/win.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/user32/tests/win.c b/dlls/user32/tests/win.c index 8da30bf2bbc..b318677c189 100644 --- a/dlls/user32/tests/win.c +++ b/dlls/user32/tests/win.c @@ -4229,6 +4229,7 @@ static void test_GetUpdateRect(void) ShowWindow(hgrandparent, SW_SHOW); UpdateWindow(hgrandparent); + flush_events(); ShowWindow(hchild, SW_HIDE); SetRect(&rc2, 0, 0, 0, 0); @@ -4288,6 +4289,7 @@ static void test_GetUpdateRect(void) ShowWindow(hgrandparent, SW_SHOW); UpdateWindow(hgrandparent); + flush_events(); ret = GetUpdateRect(hgrandparent, &rc1, FALSE); ok(!ret, "GetUpdateRect returned not empty region\n");