Commit df158e43 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

comdlg32: Avoid TRUE:FALSE conditional expressions.

parent 175eaf10
......@@ -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;
}
/***********************************************************************
......
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