diff --git a/programs/winetest/main.c b/programs/winetest/main.c index b5d9285a023..9bcfd6e4e40 100644 --- a/programs/winetest/main.c +++ b/programs/winetest/main.c @@ -68,7 +68,7 @@ static int running_under_wine () static int running_on_visible_desktop () { - return (GetWindowLongA (GetDesktopWindow (), GWL_STYLE) & WS_VISIBLE) != 0; + return IsWindowVisible( GetDesktopWindow() ); } void print_version ()