mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
Change permission from 'r' to 'rb'
it is preferable to open the file in binary mode.
This commit is contained in:
parent
2ca9866f86
commit
01d5f4d744
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user