From 943ae1f5a6edd8a0f5451d7436d35bb1339ca788 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 11 Mar 2009 11:42:01 +0100 Subject: [PATCH] user32/tests: SetForegroundWindow sometimes fails on Win98. --- dlls/user32/tests/win.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/user32/tests/win.c b/dlls/user32/tests/win.c index 33f140335fb..89eefcda4b5 100644 --- a/dlls/user32/tests/win.c +++ b/dlls/user32/tests/win.c @@ -2430,9 +2430,9 @@ static void test_SetForegroundWindow(HWND hwnd) /*trace("testing SetForegroundWindow on an invisible window %p\n", hwnd);*/ ret = SetForegroundWindow(hwnd); - ok(ret, "SetForegroundWindow returned FALSE instead of TRUE\n"); + ok(ret || broken(!ret), /* win98 */ "SetForegroundWindow returned FALSE instead of TRUE\n"); check_wnd_state(hwnd, hwnd, hwnd, 0); - + ShowWindow(hwnd, SW_SHOW); check_wnd_state(hwnd, hwnd, hwnd, 0); -- 2.11.4.GIT