1
0
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:
0x9ef 2019-07-01 22:31:36 +03:00 committed by Alexander Medvednikov
parent 2ca9866f86
commit 01d5f4d744

View File

@ -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)