Use Path Resolution Function For Hard Links

- Changed link() to use resolved_path_utf16().
This commit is contained in:
Bryan Berns 2018-04-24 05:04:56 -04:00
parent c24cf7945e
commit 3cb15761a9
1 changed files with 2 additions and 2 deletions

View File

@ -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;