=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: comctl32: Use boolean return values in boolean functions.

Alexandre Julliard julliard at winehq.org
Tue Feb 4 13:55:05 CST 2014


Module: wine
Branch: master
Commit: 1776ded8e68f48546337705d30392d8ace7dd053
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=1776ded8e68f48546337705d30392d8ace7dd053

Author: André Hentschel <nerv at dawncrow.de>
Date:   Wed Jan 29 22:26:05 2014 +0100

comctl32: Use boolean return values in boolean functions.

---

 dlls/comctl32/datetime.c |    2 +-
 dlls/comctl32/updown.c   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/comctl32/datetime.c b/dlls/comctl32/datetime.c
index d13b50c..9f91fd3 100644
--- a/dlls/comctl32/datetime.c
+++ b/dlls/comctl32/datetime.c
@@ -198,7 +198,7 @@ static BOOL DATETIME_IsDateInValidRange(const DATETIME_INFO *infoPtr, const SYST
 static BOOL
 DATETIME_SetSystemTime (DATETIME_INFO *infoPtr, DWORD flag, const SYSTEMTIME *systime)
 {
-    if (!systime) return 0;
+    if (!systime) return FALSE;
 
     TRACE("%04d/%02d/%02d %02d:%02d:%02d\n",
           systime->wYear, systime->wMonth, systime->wDay,
diff --git a/dlls/comctl32/updown.c b/dlls/comctl32/updown.c
index 23a633e..28dd5e3 100644
--- a/dlls/comctl32/updown.c
+++ b/dlls/comctl32/updown.c
@@ -354,7 +354,7 @@ static BOOL UPDOWN_SetBuddyInt (const UPDOWN_INFO *infoPtr)
 
     /* if nothing changed exit earlier */
     GetWindowTextW(infoPtr->Buddy, txt_old, sizeof(txt_old)/sizeof(WCHAR));
-    if (lstrcmpiW(txt_old, txt) == 0) return 0;
+    if (lstrcmpiW(txt_old, txt) == 0) return FALSE;
 
     return SetWindowTextW(infoPtr->Buddy, txt);
 }




More information about the wine-cvs mailing list