os: fix fullpath call on windows

pull/2856/head
Alexander Medvednikov 2019-11-23 21:05:49 +03:00
parent ccb261f00d
commit cfd4f0c69c
1 changed files with 1 additions and 1 deletions

View File

@ -869,7 +869,7 @@ pub fn realpath(fpath string) string {
mut fullpath := calloc( MAX_PATH ) mut fullpath := calloc( MAX_PATH )
mut res := 0 mut res := 0
$if windows { $if windows {
ret := C._fullpath(fpath.str, fullpath) ret := C._fullpath(fullpath, fpath.str, MAX_PATH)
if ret == 0 { if ret == 0 {
return fpath return fpath
} }