Commit 391d85d8 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

Use IsWindowVisible instead of GetWindowLong(GWL_STYLE) & WS_VISIBLE

as a test for desktop visibility.
parent 9e53994a
...@@ -68,7 +68,7 @@ static int running_under_wine () ...@@ -68,7 +68,7 @@ static int running_under_wine ()
static int running_on_visible_desktop () static int running_on_visible_desktop ()
{ {
return (GetWindowLongA (GetDesktopWindow (), GWL_STYLE) & WS_VISIBLE) != 0; return IsWindowVisible( GetDesktopWindow() );
} }
void print_version () void print_version ()
......
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