Alexandre Julliard : user32/tests: Only test the window caption status if there is a foreground window.
Alexandre Julliard
julliard at winehq.org
Fri Nov 21 10:26:25 CST 2008
Module: wine
Branch: master
Commit: bd8e14beddb1a0391ee1e8c7eaac320717f0f9ea
URL: http://source.winehq.org/git/wine.git/?a=commit;h=bd8e14beddb1a0391ee1e8c7eaac320717f0f9ea
Author: Alexandre Julliard <julliard at winehq.org>
Date: Fri Nov 21 15:53:25 2008 +0100
user32/tests: Only test the window caption status if there is a foreground window.
---
dlls/user32/tests/win.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/dlls/user32/tests/win.c b/dlls/user32/tests/win.c
index 8540827..4490679 100644
--- a/dlls/user32/tests/win.c
+++ b/dlls/user32/tests/win.c
@@ -739,9 +739,10 @@ static void verify_window_info(HWND hwnd, const WINDOWINFO *info)
*/
ok((info->dwExStyle & ~0xe0000800) == (DWORD)GetWindowLongA(hwnd, GWL_EXSTYLE),
"wrong dwExStyle: %08x != %08x\n", info->dwExStyle, GetWindowLongA(hwnd, GWL_EXSTYLE));
- status = (GetForegroundWindow() == hwnd) ? WS_ACTIVECAPTION : 0;
- ok(info->dwWindowStatus == status, "wrong dwWindowStatus: %04x != %04x active %p fg %p\n",
- info->dwWindowStatus, status, GetActiveWindow(), GetForegroundWindow());
+ status = (GetActiveWindow() == hwnd) ? WS_ACTIVECAPTION : 0;
+ if (GetForegroundWindow())
+ ok(info->dwWindowStatus == status, "wrong dwWindowStatus: %04x != %04x active %p fg %p\n",
+ info->dwWindowStatus, status, GetActiveWindow(), GetForegroundWindow());
/* win2k and XP return broken border info in GetWindowInfo most of
* the time, so there is no point in testing it.
More information about the wine-cvs
mailing list