mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:19:49 +00:00
comdlg32: Avoid TRUE:FALSE conditional expressions.
This commit is contained in:
parent
175eaf1074
commit
df158e4379
2 changed files with 3 additions and 3 deletions
|
@ -492,7 +492,7 @@ static LRESULT FD31_TestPath( const FD31_DATA *lfs, LPWSTR path )
|
|||
TRACE("path=%s, tmpstr2=%s\n", debugstr_w(path), debugstr_w(tmpstr2));
|
||||
SetDlgItemTextW( hWnd, edt1, tmpstr2 );
|
||||
FD31_ScanDir(lfs->ofnW, hWnd, path);
|
||||
return (lfs->ofnW->Flags & OFN_NOVALIDATE) ? TRUE : FALSE;
|
||||
return (lfs->ofnW->Flags & OFN_NOVALIDATE) != 0;
|
||||
}
|
||||
|
||||
/* no wildcards, we might have a directory or a filename */
|
||||
|
|
|
@ -2190,7 +2190,7 @@ static BOOL PRINTDLG_CreateDCA(LPPRINTDLGA lppd)
|
|||
}
|
||||
GlobalUnlock(lppd->hDevNames);
|
||||
GlobalUnlock(lppd->hDevMode);
|
||||
return lppd->hDC ? TRUE : FALSE;
|
||||
return lppd->hDC != NULL;
|
||||
}
|
||||
|
||||
static BOOL PRINTDLG_CreateDCW(LPPRINTDLGW lppd)
|
||||
|
@ -2211,7 +2211,7 @@ static BOOL PRINTDLG_CreateDCW(LPPRINTDLGW lppd)
|
|||
}
|
||||
GlobalUnlock(lppd->hDevNames);
|
||||
GlobalUnlock(lppd->hDevMode);
|
||||
return lppd->hDC ? TRUE : FALSE;
|
||||
return lppd->hDC != NULL;
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
|
|
Loading…
Reference in a new issue