From 391d85d81db42e9042d9a2c188c7dd1244032060 Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov Date: Thu, 3 Mar 2005 13:49:47 +0000 Subject: [PATCH] Use IsWindowVisible instead of GetWindowLong(GWL_STYLE) & WS_VISIBLE as a test for desktop visibility. --- programs/winetest/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ()