combined fix into a single line
This commit is contained in:
parent
ade04862f8
commit
0174bae7a8
|
@ -82,9 +82,7 @@ bool CFile::Open(const char * lpszFileName, uint32_t nOpenFlags)
|
||||||
ULONG dwCreateFlag = OPEN_EXISTING;
|
ULONG dwCreateFlag = OPEN_EXISTING;
|
||||||
if (nOpenFlags & modeCreate)
|
if (nOpenFlags & modeCreate)
|
||||||
{
|
{
|
||||||
dwCreateFlag =
|
dwCreateFlag = ((nOpenFlags & modeNoTruncate) != 0) ? OPEN_ALWAYS : CREATE_ALWAYS;
|
||||||
((nOpenFlags & modeNoTruncate) != 0)
|
|
||||||
? OPEN_ALWAYS : CREATE_ALWAYS;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// attempt file creation
|
// attempt file creation
|
||||||
|
|
Loading…
Reference in New Issue