comdlg32: Avoid TRUE:FALSE conditional expressions.

This commit is contained in:
Michael Stefaniuc 2012-08-08 21:01:59 +02:00 committed by Alexandre Julliard
parent 175eaf1074
commit df158e4379
2 changed files with 3 additions and 3 deletions

View file

@ -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 */

View file

@ -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;
}
/***********************************************************************