=?UTF-8?Q?Fr=C3=A9d=C3=A9ric=20Delanoy=20?=: user32: Use BOOL type where appropriate.
Alexandre Julliard
julliard at winehq.org
Thu Feb 20 10:08:10 CST 2014
Module: wine
Branch: master
Commit: e7c5c9ae9b14be8ae25f8f23010d107adb250974
URL: http://source.winehq.org/git/wine.git/?a=commit;h=e7c5c9ae9b14be8ae25f8f23010d107adb250974
Author: Frédéric Delanoy <frederic.delanoy at gmail.com>
Date: Wed Feb 19 22:13:30 2014 +0100
user32: Use BOOL type where appropriate.
---
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 );
More information about the wine-cvs
mailing list