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:
parent
ccb261f00d
commit
cfd4f0c69c
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user