Fixed more boolean comparisons against TRUE.
This commit is contained in:
parent
4def9cc022
commit
d20c6cf8ca
|
@ -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++)
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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: {
|
||||
|
|
Loading…
Reference in New Issue