mirror of
https://git.suyu.dev/suyu/Yucom.git
synced 2025-12-27 01:34:34 +01:00
vrclient_x64: Resolve absolute path in vrclient_dos_path_to_unix_path().
This commit is contained in:
parent
ec0f1d98db
commit
89c297da9d
1 changed files with 5 additions and 1 deletions
|
|
@ -116,7 +116,11 @@ bool vrclient_dos_path_to_unix_path(const char *src, char *dst)
|
|||
return 0;
|
||||
}
|
||||
|
||||
strncpy(dst, unix_path, PATH_MAX);
|
||||
if (!realpath(unix_path, dst))
|
||||
{
|
||||
ERR("Could not get real path for %s.\n", unix_path);
|
||||
strncpy(dst, unix_path, PATH_MAX);
|
||||
}
|
||||
|
||||
HeapFree(GetProcessHeap(), 0, unix_path);
|
||||
}else{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue