diff --git a/vlib/os/os_win.v b/vlib/os/os_win.v index 586f3eb807..627677ebda 100644 --- a/vlib/os/os_win.v +++ b/vlib/os/os_win.v @@ -5,7 +5,7 @@ module os type HANDLE voidptr // C.HANDLE pub fn get_file_handle(path string) HANDLE { - mode := 'r' + mode := 'rb' _fh := C.fopen(path.cstr(), mode.cstr()) if isnil(_fh) { return HANDLE(INVALID_HANDLE_VALUE)