Commit bd8e14be authored by Alexandre Julliard's avatar Alexandre Julliard

user32/tests: Only test the window caption status if there is a foreground window.

parent 9643411c
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment