Skip to content
Snippets Groups Projects
Commit 391d85d8 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard
Browse files

Use IsWindowVisible instead of GetWindowLong(GWL_STYLE) & WS_VISIBLE

as a test for desktop visibility.
parent 9e53994a
No related branches found
No related tags found
No related merge requests found
......@@ -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 ()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment