Skip to content

Commit 8bf4ac5

Browse files
author
Git for Windows Build Agent
committed
Merge pull request #1334 from max630/mingw-direct-CreateHardLinkW
mingw: use CreateHardLink directly
2 parents 6906700 + b29e75c commit 8bf4ac5

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

compat/mingw.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2698,13 +2698,8 @@ int mingw_raise(int sig)
26982698

26992699
int link(const char *oldpath, const char *newpath)
27002700
{
2701-
DECLARE_PROC_ADDR(kernel32.dll, BOOL, CreateHardLinkW,
2702-
LPCWSTR, LPCWSTR, LPSECURITY_ATTRIBUTES);
27032701
wchar_t woldpath[MAX_LONG_PATH], wnewpath[MAX_LONG_PATH];
27042702

2705-
if (!INIT_PROC_ADDR(CreateHardLinkW))
2706-
return -1;
2707-
27082703
if (xutftowcs_long_path(woldpath, oldpath) < 0 ||
27092704
xutftowcs_long_path(wnewpath, newpath) < 0)
27102705
return -1;

0 commit comments

Comments
 (0)