Skip to content

Commit 05ca542

Browse files
authored
Merge pull request #1651 from michaldudak/dir-symlinks-fix
fixup! Win32: symlink: add support for symlinks to directories
2 parents df4ca5f + ec4523a commit 05ca542

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compat/mingw.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ static enum phantom_symlink_result process_phantom_symlink(
297297
return PHANTOM_SYMLINK_DONE;
298298

299299
/* let Windows resolve the link by opening it */
300-
hnd = CreateFileW(wlink, 0,
300+
hnd = CreateFileW(wtarget, 0,
301301
FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE, NULL,
302302
OPEN_EXISTING, FILE_FLAG_BACKUP_SEMANTICS, NULL);
303303
if (hnd == INVALID_HANDLE_VALUE) {

0 commit comments

Comments
 (0)