Fix os.open

This commit is contained in:
gingerBill
2019-12-23 18:10:09 +00:00
parent fb0fb4767b
commit 85e31e1b69
2 changed files with 144 additions and 140 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ is_path_separator :: proc(r: rune) -> bool {
return r == '/' || r == '\\';
}
open :: proc(path: string, mode: int = O_RDONLY, perm: u32 = 0) -> (Handle, Errno) {
open :: proc(path: string, mode: int = O_RDONLY, perm: int = 0) -> (Handle, Errno) {
if len(path) == 0 do return INVALID_HANDLE, ERROR_FILE_NOT_FOUND;
access: u32;