diff --git a/dlls/user32/tests/win.c b/dlls/user32/tests/win.c index a99eab4..42b6f8c 100644 --- a/dlls/user32/tests/win.c +++ b/dlls/user32/tests/win.c @@ -2258,7 +2258,9 @@ static void check_wnd_state(HWND active, HWND foreground, HWND focus, HWND captu { ok(active == GetActiveWindow(), "GetActiveWindow() = %p\n", GetActiveWindow()); if (foreground) - ok(foreground == GetForegroundWindow(), "GetForegroundWindow() = %p\n", GetForegroundWindow()); + /* msdn: the foreground window can be NULL in certain circumstances */ + ok(foreground == GetForegroundWindow() || + NULL == GetForegroundWindow(), "GetForegroundWindow() = %p\n", GetForegroundWindow()); ok(focus == GetFocus(), "GetFocus() = %p\n", GetFocus()); ok(capture == GetCapture(), "GetCapture() = %p\n", GetCapture()); } -- 1.5.4.3