mirror of
https://github.com/reactos/wine.git
synced 2024-11-28 14:10:32 +00:00
comdlg32: Avoid TRUE:FALSE conditional expressions.
This commit is contained in:
parent
175eaf1074
commit
df158e4379
@ -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 New Issue
Block a user