comctl32: Use boolean return values in boolean functions.

This commit is contained in:
André Hentschel 2014-01-29 22:26:05 +01:00 committed by Alexandre Julliard
parent 929d9fb9f7
commit 1776ded8e6
2 changed files with 2 additions and 2 deletions

View File

@ -198,7 +198,7 @@ static BOOL DATETIME_IsDateInValidRange(const DATETIME_INFO *infoPtr, const SYST
static BOOL static BOOL
DATETIME_SetSystemTime (DATETIME_INFO *infoPtr, DWORD flag, const SYSTEMTIME *systime) 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", TRACE("%04d/%02d/%02d %02d:%02d:%02d\n",
systime->wYear, systime->wMonth, systime->wDay, systime->wYear, systime->wMonth, systime->wDay,

View File

@ -354,7 +354,7 @@ static BOOL UPDOWN_SetBuddyInt (const UPDOWN_INFO *infoPtr)
/* if nothing changed exit earlier */ /* if nothing changed exit earlier */
GetWindowTextW(infoPtr->Buddy, txt_old, sizeof(txt_old)/sizeof(WCHAR)); 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); return SetWindowTextW(infoPtr->Buddy, txt);
} }