user32: Use BOOL type where appropriate

Frédéric Delanoy frederic.delanoy at gmail.com
Wed Feb 19 15:13:30 CST 2014


---
 dlls/user32/sysparams.c | 2 +-
 dlls/user32/win.c       | 5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/dlls/user32/sysparams.c b/dlls/user32/sysparams.c
index 4b510f2..9944119 100644
--- a/dlls/user32/sysparams.c
+++ b/dlls/user32/sysparams.c
@@ -1543,7 +1543,7 @@ BOOL WINAPI SystemParametersInfoW( UINT uiAction, UINT uiParam,
 
     case SPI_GETFASTTASKSWITCH:			/*     35 */
         if (!pvParam) return FALSE;
-	*(BOOL *)pvParam = 1;
+        *(BOOL *)pvParam = TRUE;
         ret = TRUE;
         break;
 
diff --git a/dlls/user32/win.c b/dlls/user32/win.c
index 275b93c..d60427f 100644
--- a/dlls/user32/win.c
+++ b/dlls/user32/win.c
@@ -1849,7 +1849,8 @@ BOOL WINAPI DestroyWindow( HWND hwnd )
     {
         for (;;)
         {
-            int i, got_one = 0;
+            int i;
+            BOOL got_one = FALSE;
             HWND *list = WIN_ListChildren( GetDesktopWindow() );
             if (list)
             {
@@ -1859,7 +1860,7 @@ BOOL WINAPI DestroyWindow( HWND hwnd )
                     if (WIN_IsCurrentThread( list[i] ))
                     {
                         DestroyWindow( list[i] );
-                        got_one = 1;
+                        got_one = TRUE;
                         continue;
                     }
                     WIN_SetOwner( list[i], 0 );
-- 
1.9.0




More information about the wine-patches mailing list