From 7d6ca63154e2d36390f60949bb4a41ce23c53748 Mon Sep 17 00:00:00 2001 From: Piotr Caban Date: Tue, 3 Nov 2015 18:43:12 +0100 Subject: [PATCH] comctl32/tests: Flush events in listview tests after setting foreground window. Signed-off-by: Piotr Caban Signed-off-by: Nikolay Sivov Signed-off-by: Alexandre Julliard --- dlls/comctl32/tests/listview.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/comctl32/tests/listview.c b/dlls/comctl32/tests/listview.c index 118b4a2bf9c..676dca1951b 100644 --- a/dlls/comctl32/tests/listview.c +++ b/dlls/comctl32/tests/listview.c @@ -5776,6 +5776,7 @@ static void test_oneclickactivate(void) ok(r == 0, "should return zero\n"); SetForegroundWindow(hwndparent); + flush_events(); fg = GetForegroundWindow(); if (fg != hwndparent) {