Merge pull request #1651 from michaldudak/dir-symlinks-fix

fixup! Win32: symlink: add support for symlinks to directories
This commit is contained in:
Johannes Schindelin
2018-05-03 12:46:36 +02:00
committed by GitHub

View File

@@ -297,7 +297,7 @@ static enum phantom_symlink_result process_phantom_symlink(
return PHANTOM_SYMLINK_DONE;
/* let Windows resolve the link by opening it */
hnd = CreateFileW(wlink, 0,
hnd = CreateFileW(wtarget, 0,
FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE, NULL,
OPEN_EXISTING, FILE_FLAG_BACKUP_SEMANTICS, NULL);
if (hnd == INVALID_HANDLE_VALUE) {