Fix creating new file if using NativeFileStream with ios_base::out

This commit is contained in:
Martchus 2018-11-02 23:06:30 +01:00
parent 757a3476cc
commit 82816d7653
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ struct NativeFileParams {
openMode = 'w';
openFlags = O_WRONLY | O_TRUNC | O_CREAT;
} else {
openMode = "r+";
openMode = "w";
openFlags = O_WRONLY | O_CREAT;
}
}