Mike McCormack : Fixed more boolean comparisons against TRUE.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed May 24 07:49:09 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: d20c6cf8ca814b92ab3edc5fc291071561551194
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=d20c6cf8ca814b92ab3edc5fc291071561551194
Author: Mike McCormack <mike at codeweavers.com>
Date: Wed May 24 19:29:06 2006 +0900
Fixed more boolean comparisons against TRUE.
---
dlls/gdi/font.c | 2 +-
dlls/msi/classes.c | 2 +-
dlls/quartz/filtergraph.c | 2 +-
programs/winefile/winefile.c | 4 ++--
4 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/dlls/gdi/font.c b/dlls/gdi/font.c
index c8cbfab..40e308e 100644
--- a/dlls/gdi/font.c
+++ b/dlls/gdi/font.c
@@ -2883,7 +2883,7 @@ BOOL WINAPI GetCharABCWidthsFloatW( HDC
if (!abc) return FALSE;
ret = GetCharABCWidthsW( hdc, first, last, abc );
- if (ret == TRUE)
+ if (ret)
{
for (i = first; i <= last; i++, abc++, abcf++)
{
diff --git a/dlls/msi/classes.c b/dlls/msi/classes.c
index 13a4df2..7476f7f 100644
--- a/dlls/msi/classes.c
+++ b/dlls/msi/classes.c
@@ -716,7 +716,7 @@ static void mark_progid_for_install( MSI
if (!progid)
return;
- if (progid->InstallMe == TRUE)
+ if (progid->InstallMe)
return;
progid->InstallMe = TRUE;
diff --git a/dlls/quartz/filtergraph.c b/dlls/quartz/filtergraph.c
index 29a4f42..dbb4048 100644
--- a/dlls/quartz/filtergraph.c
+++ b/dlls/quartz/filtergraph.c
@@ -1379,7 +1379,7 @@ static HRESULT SendFilterMessage(IMediaC
break;
}
}
- if (source == TRUE)
+ if (source)
{
TRACE("Found a source filter %p\n", pfilter);
IEnumPins_Reset(pEnum);
diff --git a/programs/winefile/winefile.c b/programs/winefile/winefile.c
index e4fc4ec..8b03f1e 100644
--- a/programs/winefile/winefile.c
+++ b/programs/winefile/winefile.c
@@ -2235,7 +2235,7 @@ static LRESULT CALLBACK FrameWndProc(HWN
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(HWN
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: {
More information about the wine-cvs
mailing list