Fix creating new file if using NativeFileStream with ios_base::out
This commit is contained in:
parent
757a3476cc
commit
82816d7653
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue