Fixed more boolean comparisons against TRUE.

This commit is contained in:
Mike McCormack 2006-05-24 19:29:06 +09:00 committed by Alexandre Julliard
parent 4def9cc022
commit d20c6cf8ca
4 changed files with 5 additions and 5 deletions

View File

@ -2883,7 +2883,7 @@ BOOL WINAPI GetCharABCWidthsFloatW( HDC hdc, UINT first, UINT last, LPABCFLOAT a
if (!abc) return FALSE;
ret = GetCharABCWidthsW( hdc, first, last, abc );
if (ret == TRUE)
if (ret)
{
for (i = first; i <= last; i++, abc++, abcf++)
{

View File

@ -716,7 +716,7 @@ static void mark_progid_for_install( MSIPACKAGE* package, MSIPROGID *progid )
if (!progid)
return;
if (progid->InstallMe == TRUE)
if (progid->InstallMe)
return;
progid->InstallMe = TRUE;

View File

@ -1379,7 +1379,7 @@ static HRESULT SendFilterMessage(IMediaControl *iface, fnFoundFilter FoundFilter
break;
}
}
if (source == TRUE)
if (source)
{
TRACE("Found a source filter %p\n", pfilter);
IEnumPins_Reset(pEnum);

View File

@ -2235,7 +2235,7 @@ static LRESULT CALLBACK FrameWndProc(HWND hwnd, UINT nmsg, WPARAM wparam, LPARAM
switch(nmsg) {
case WM_CLOSE:
if (Globals.saveSettings == TRUE)
if (Globals.saveSettings)
save_registry_settings();
DestroyWindow(hwnd);
@ -2396,7 +2396,7 @@ static LRESULT CALLBACK FrameWndProc(HWND hwnd, UINT nmsg, WPARAM wparam, LPARAM
case ID_VIEW_SAVESETTINGS:
Globals.saveSettings = !Globals.saveSettings;
CheckMenuItem(Globals.hMenuOptions, ID_VIEW_SAVESETTINGS,
Globals.saveSettings == TRUE ? MF_CHECKED : MF_UNCHECKED );
Globals.saveSettings ? MF_CHECKED : MF_UNCHECKED );
break;
case ID_EXECUTE: {