os: fix fullpath call on windows
parent
ccb261f00d
commit
cfd4f0c69c
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue