mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-02-11 14:18:49 +03:00
vrclient_x64: Resolve absolute path in vrclient_dos_path_to_unix_path().
This commit is contained in:
parent
55cca0e1f8
commit
92b6125338
@ -117,7 +117,11 @@ bool vrclient_dos_path_to_unix_path(const char *src, char *dst)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!realpath(unix_path, dst))
|
||||||
|
{
|
||||||
|
ERR("Could not get real path for %s.\n", unix_path);
|
||||||
strncpy(dst, unix_path, PATH_MAX);
|
strncpy(dst, unix_path, PATH_MAX);
|
||||||
|
}
|
||||||
|
|
||||||
HeapFree(GetProcessHeap(), 0, unix_path);
|
HeapFree(GetProcessHeap(), 0, unix_path);
|
||||||
}else{
|
}else{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user