Core/File: Fix OpenMode_MustExist for Linux

This commit is contained in:
Lynix 2016-11-27 14:23:36 +01:00
parent efcce7d442
commit 0031b0fd83
1 changed files with 3 additions and 0 deletions

View File

@ -66,6 +66,9 @@ namespace Nz
if (mode & OpenMode_Append)
flags |= O_APPEND;
if (mode & OpenMode_MustExist)
flags &= ~O_CREAT;
if (mode & OpenMode_Truncate)
flags |= O_TRUNC;