Change permission from 'r' to 'rb'

it is preferable to open the file in binary mode.
pull/916/head
0x9ef 2019-07-01 22:31:36 +03:00 committed by Alexander Medvednikov
parent 2ca9866f86
commit 01d5f4d744
1 changed files with 1 additions and 1 deletions

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)