From f6722870522a62bbecdc664b92fdfad652b6393a Mon Sep 17 00:00:00 2001 From: Felipe Tavares Date: Sun, 24 Nov 2019 20:16:03 -0300 Subject: [PATCH] Create rw files on windows. --- src/kernel/filesystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kernel/filesystem.cpp b/src/kernel/filesystem.cpp index 8d0c973..2fc9a42 100644 --- a/src/kernel/filesystem.cpp +++ b/src/kernel/filesystem.cpp @@ -249,7 +249,7 @@ bool fs::create_file (Path _path) { return false; #ifdef WIN32 - int fd = ::open(_path.get_path().c_str(), O_CREAT); + int fd = ::open(_path.get_path().c_str(), _O_CREAT, _S_IREAD | _S_IWRITE); #else int fd = open(_path.get_path().c_str(), O_CREAT, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); #endif