1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

os: fix fullpath call on windows

This commit is contained in:
Alexander Medvednikov 2019-11-23 21:05:49 +03:00
parent ccb261f00d
commit cfd4f0c69c

View File

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