gdi32: Use BOOL type where appropriate (try 2)

Frédéric Delanoy frederic.delanoy at gmail.com
Fri Oct 11 15:43:00 CDT 2013


---
 dlls/gdi32/dibdrv/opengl.c | 4 ++--
 dlls/gdi32/region.c        | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/gdi32/dibdrv/opengl.c b/dlls/gdi32/dibdrv/opengl.c
index add0b01..28a03f4 100644
--- a/dlls/gdi32/dibdrv/opengl.c
+++ b/dlls/gdi32/dibdrv/opengl.c
@@ -98,13 +98,13 @@ static const int nb_formats = sizeof(pixel_formats) / sizeof(pixel_formats[0]);
 
 static BOOL init_opengl(void)
 {
-    static int init_done;
+    static BOOL init_done = FALSE;
     static void *osmesa_handle;
     char buffer[200];
     unsigned int i;
 
     if (init_done) return (osmesa_handle != NULL);
-    init_done = 1;
+    init_done = TRUE;
 
     osmesa_handle = wine_dlopen( SONAME_LIBOSMESA, RTLD_NOW, buffer, sizeof(buffer) );
     if (osmesa_handle == NULL)
diff --git a/dlls/gdi32/region.c b/dlls/gdi32/region.c
index 1c31d42..062272d 100644
--- a/dlls/gdi32/region.c
+++ b/dlls/gdi32/region.c
@@ -2664,7 +2664,7 @@ HRGN WINAPI CreatePolyPolygonRgn(const POINT *Pts, const INT *Count,
     struct list AET;                 /* header for AET     */
     EdgeTableEntry *pETEs;           /* EdgeTableEntries pool   */
     ScanLineListBlock SLLBlock;      /* header for scanlinelist */
-    int fixWAET = FALSE;
+    BOOL fixWAET = FALSE;
     struct point_block FirstPtBlock, *block; /* PtBlock buffers    */
     struct edge_table_entry *active, *next;
     INT poly, total;
-- 
1.8.4




More information about the wine-patches mailing list