Skip to content

Commit

Permalink
Merge pull request #1651 from michaldudak/dir-symlinks-fix
Browse files Browse the repository at this point in the history
fixup! Win32: symlink: add support for symlinks to directories
  • Loading branch information
dscho committed May 3, 2018
2 parents df4ca5f + ec4523a commit 05ca542
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compat/mingw.c
Expand Up @@ -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) {
Expand Down

0 comments on commit 05ca542

Please sign in to comment.