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) {