Fix os_open

This commit is contained in:
Noah committed 2019-09-23 11:26:04 -05:00
1 parent 46c91414ad
commit dd9bece293
1 file changed
+3
+3
View File
@@ -141,6 +141,9 @@ pub fn os_open(
}
}
#[cfg(windows)]
let flags = flags & !(libc::O_WRONLY as u32);
options.custom_flags(flags);
let handle = options
.open(fname.as_str())