Alexandre Julliard : user32/tests: SetForegroundWindow sometimes fails on Win98.

Alexandre Julliard julliard at winehq.org
Wed Mar 11 10:04:27 CDT 2009


Module: wine
Branch: master
Commit: 943ae1f5a6edd8a0f5451d7436d35bb1339ca788
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=943ae1f5a6edd8a0f5451d7436d35bb1339ca788

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Wed Mar 11 11:42:01 2009 +0100

user32/tests: SetForegroundWindow sometimes fails on Win98.

---

 dlls/user32/tests/win.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/user32/tests/win.c b/dlls/user32/tests/win.c
index 33f1403..89eefcd 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);
 




More information about the wine-cvs mailing list