Skip to content

Commit 5354b4b

Browse files
committed
Merge pull request #1334 from max630/mingw-direct-CreateHardLinkW
mingw: use CreateHardLink directly
2 parents 09c3e8c + 08f691b commit 5354b4b

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
@@ -2703,13 +2703,8 @@ int mingw_raise(int sig)
27032703

27042704
int link(const char *oldpath, const char *newpath)
27052705
{
2706-
DECLARE_PROC_ADDR(kernel32.dll, BOOL, CreateHardLinkW,
2707-
LPCWSTR, LPCWSTR, LPSECURITY_ATTRIBUTES);
27082706
wchar_t woldpath[MAX_LONG_PATH], wnewpath[MAX_LONG_PATH];
27092707

2710-
if (!INIT_PROC_ADDR(CreateHardLinkW))
2711-
return -1;
2712-
27132708
if (xutftowcs_long_path(woldpath, oldpath) < 0 ||
27142709
xutftowcs_long_path(wnewpath, newpath) < 0)
27152710
return -1;

0 commit comments

Comments
 (0)