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

cabinet: Avoid TRUE-FALSE conditional expressions.

parent 3a51439f
...@@ -703,9 +703,9 @@ static BOOL FDI_read_entries( ...@@ -703,9 +703,9 @@ static BOOL FDI_read_entries(
pfdici->cFiles = num_files; pfdici->cFiles = num_files;
pfdici->setID = setid; pfdici->setID = setid;
pfdici->iCabinet = cabidx; pfdici->iCabinet = cabidx;
pfdici->fReserve = (flags & cfheadRESERVE_PRESENT) ? TRUE : FALSE; pfdici->fReserve = (flags & cfheadRESERVE_PRESENT) != 0;
pfdici->hasprev = (flags & cfheadPREV_CABINET) ? TRUE : FALSE; pfdici->hasprev = (flags & cfheadPREV_CABINET) != 0;
pfdici->hasnext = (flags & cfheadNEXT_CABINET) ? TRUE : FALSE; pfdici->hasnext = (flags & cfheadNEXT_CABINET) != 0;
return TRUE; return TRUE;
} }
...@@ -2815,7 +2815,7 @@ BOOL __cdecl FDICopy( ...@@ -2815,7 +2815,7 @@ BOOL __cdecl FDICopy(
fdin.pv = pvUser; fdin.pv = pvUser;
fdin.psz1 = (char *)file->filename; fdin.psz1 = (char *)file->filename;
fdin.hf = filehf; fdin.hf = filehf;
fdin.cb = (file->attribs & cffile_A_EXEC) ? TRUE : FALSE; /* FIXME: is that right? */ fdin.cb = (file->attribs & cffile_A_EXEC) != 0; /* FIXME: is that right? */
fdin.date = file->date; fdin.date = file->date;
fdin.time = file->time; fdin.time = file->time;
fdin.attribs = file->attribs; /* FIXME: filter _A_EXEC? */ fdin.attribs = file->attribs; /* FIXME: filter _A_EXEC? */
......
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