Use Path Resolution Function For Hard Links
- Changed link() to use resolved_path_utf16().
This commit is contained in:
parent
c24cf7945e
commit
3cb15761a9
|
@ -1212,8 +1212,8 @@ fileio_link(const char *oldpath, const char *newpath)
|
|||
}
|
||||
|
||||
DWORD ret = 0;
|
||||
wchar_t *oldpath_utf16 = utf8_to_utf16(resolved_path(oldpath));
|
||||
wchar_t *newpath_utf16 = utf8_to_utf16(resolved_path(newpath));
|
||||
wchar_t *oldpath_utf16 = resolved_path_utf16(oldpath);
|
||||
wchar_t *newpath_utf16 = resolved_path_utf16(newpath);
|
||||
if (oldpath_utf16 == NULL || newpath_utf16 == NULL) {
|
||||
errno = ENOMEM;
|
||||
ret = -1;
|
||||
|
|
Loading…
Reference in New Issue