inverted the inverted file flags condition

This commit is contained in:
unknown 2015-11-11 12:31:17 -05:00
parent 53aa2faf3b
commit 2206ba0985
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ bool CFile::Open(const char * lpszFileName, uint32_t nOpenFlags)
ULONG dwCreateFlag = 0;
if (nOpenFlags & modeCreate)
{
dwCreateFlag = nOpenFlags & modeNoTruncate == 0 ? OPEN_ALWAYS : CREATE_ALWAYS;
dwCreateFlag = nOpenFlags & modeNoTruncate != 0 ? OPEN_ALWAYS : CREATE_ALWAYS;
}
else
{