From 42f7e4a4d9b9ebc9a0364647a34910038562fe64 Mon Sep 17 00:00:00 2001 From: Paul Vriens Date: Mon, 12 Oct 2009 09:21:25 +0200 Subject: [PATCH] user32/tests: Fix an intermittent test failure. --- dlls/user32/tests/listbox.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/user32/tests/listbox.c b/dlls/user32/tests/listbox.c index 0aef698dbf5..942c7800f67 100644 --- a/dlls/user32/tests/listbox.c +++ b/dlls/user32/tests/listbox.c @@ -303,6 +303,7 @@ static void test_ownerdraw(void) hLB = create_listbox(LBS_OWNERDRAWFIXED | WS_CHILD | WS_VISIBLE, parent); assert(hLB); + SetForegroundWindow(hLB); UpdateWindow(hLB); /* make height short enough */