Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
windows: fix regression in uv_fs_link
Old and new path were accidentally reversed.
  • Loading branch information
piscisaureus committed Jul 31, 2012
1 parent d192a31 commit 7edc29a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/win/fs.c
Expand Up @@ -1134,7 +1134,7 @@ static void fs__futime(uv_fs_t* req) {


static void fs__link(uv_fs_t* req) {
DWORD r = CreateHardLinkW(req->pathw, req->new_pathw, NULL);
DWORD r = CreateHardLinkW(req->new_pathw, req->pathw, NULL);
if (r == 0) {
SET_REQ_WIN32_ERROR(req, GetLastError());
} else {
Expand Down

0 comments on commit 7edc29a

Please sign in to comment.