Commit d20c6cf8 authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

Fixed more boolean comparisons against TRUE.

parent 4def9cc0
...@@ -2883,7 +2883,7 @@ BOOL WINAPI GetCharABCWidthsFloatW( HDC hdc, UINT first, UINT last, LPABCFLOAT a ...@@ -2883,7 +2883,7 @@ BOOL WINAPI GetCharABCWidthsFloatW( HDC hdc, UINT first, UINT last, LPABCFLOAT a
if (!abc) return FALSE; if (!abc) return FALSE;
ret = GetCharABCWidthsW( hdc, first, last, abc ); ret = GetCharABCWidthsW( hdc, first, last, abc );
if (ret == TRUE) if (ret)
{ {
for (i = first; i <= last; i++, abc++, abcf++) for (i = first; i <= last; i++, abc++, abcf++)
{ {
......
...@@ -716,7 +716,7 @@ static void mark_progid_for_install( MSIPACKAGE* package, MSIPROGID *progid ) ...@@ -716,7 +716,7 @@ static void mark_progid_for_install( MSIPACKAGE* package, MSIPROGID *progid )
if (!progid) if (!progid)
return; return;
if (progid->InstallMe == TRUE) if (progid->InstallMe)
return; return;
progid->InstallMe = TRUE; progid->InstallMe = TRUE;
......
...@@ -1379,7 +1379,7 @@ static HRESULT SendFilterMessage(IMediaControl *iface, fnFoundFilter FoundFilter ...@@ -1379,7 +1379,7 @@ static HRESULT SendFilterMessage(IMediaControl *iface, fnFoundFilter FoundFilter
break; break;
} }
} }
if (source == TRUE) if (source)
{ {
TRACE("Found a source filter %p\n", pfilter); TRACE("Found a source filter %p\n", pfilter);
IEnumPins_Reset(pEnum); IEnumPins_Reset(pEnum);
......
...@@ -2235,7 +2235,7 @@ static LRESULT CALLBACK FrameWndProc(HWND hwnd, UINT nmsg, WPARAM wparam, LPARAM ...@@ -2235,7 +2235,7 @@ static LRESULT CALLBACK FrameWndProc(HWND hwnd, UINT nmsg, WPARAM wparam, LPARAM
switch(nmsg) { switch(nmsg) {
case WM_CLOSE: case WM_CLOSE:
if (Globals.saveSettings == TRUE) if (Globals.saveSettings)
save_registry_settings(); save_registry_settings();
DestroyWindow(hwnd); DestroyWindow(hwnd);
...@@ -2396,7 +2396,7 @@ static LRESULT CALLBACK FrameWndProc(HWND hwnd, UINT nmsg, WPARAM wparam, LPARAM ...@@ -2396,7 +2396,7 @@ static LRESULT CALLBACK FrameWndProc(HWND hwnd, UINT nmsg, WPARAM wparam, LPARAM
case ID_VIEW_SAVESETTINGS: case ID_VIEW_SAVESETTINGS:
Globals.saveSettings = !Globals.saveSettings; Globals.saveSettings = !Globals.saveSettings;
CheckMenuItem(Globals.hMenuOptions, ID_VIEW_SAVESETTINGS, CheckMenuItem(Globals.hMenuOptions, ID_VIEW_SAVESETTINGS,
Globals.saveSettings == TRUE ? MF_CHECKED : MF_UNCHECKED ); Globals.saveSettings ? MF_CHECKED : MF_UNCHECKED );
break; break;
case ID_EXECUTE: { case ID_EXECUTE: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment