Deuglify report output

Ferenc Wagner wferi at afavant.elte.hu
Wed Jan 5 09:57:36 CST 2005


ChangeLog: Return a true boolean value (0 or 1).

Feri.

Index: programs/winetest/main.c
===================================================================
RCS file: /home/wine/wine/programs/winetest/main.c,v
retrieving revision 1.24
diff -u -r1.24 main.c
--- programs/winetest/main.c	22 Dec 2004 14:50:50 -0000	1.24
+++ programs/winetest/main.c	5 Jan 2005 15:55:09 -0000
@@ -68,7 +68,7 @@
 
 static int running_on_visible_desktop ()
 {
-    return GetWindowLongA (GetDesktopWindow (), GWL_STYLE) & WS_VISIBLE;
+    return (GetWindowLongA (GetDesktopWindow (), GWL_STYLE) & WS_VISIBLE != 0);
 }
 
 void print_version ()



More information about the wine-patches mailing list