Return a true boolean value (0 or 1).
This commit is contained in:
parent
7c26a65f07
commit
a790b2d1c5
|
@ -68,7 +68,7 @@ static int running_under_wine ()
|
|||
|
||||
static int running_on_visible_desktop ()
|
||||
{
|
||||
return GetWindowLongA (GetDesktopWindow (), GWL_STYLE) & WS_VISIBLE;
|
||||
return (GetWindowLongA (GetDesktopWindow (), GWL_STYLE) & WS_VISIBLE) != 0;
|
||||
}
|
||||
|
||||
void print_version ()
|
||||
|
|
Loading…
Reference in New Issue