Skip to content

Commit 9abc2c0

Browse files
committed
Merge pull request #1334 from max630/mingw-direct-CreateHardLinkW
mingw: use CreateHardLink directly
2 parents 4feb7bb + a7b244c commit 9abc2c0

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

26692669
int link(const char *oldpath, const char *newpath)
26702670
{
2671-
DECLARE_PROC_ADDR(kernel32.dll, BOOL, CreateHardLinkW,
2672-
LPCWSTR, LPCWSTR, LPSECURITY_ATTRIBUTES);
26732671
wchar_t woldpath[MAX_LONG_PATH], wnewpath[MAX_LONG_PATH];
26742672

2675-
if (!INIT_PROC_ADDR(CreateHardLinkW))
2676-
return -1;
2677-
26782673
if (xutftowcs_long_path(woldpath, oldpath) < 0 ||
26792674
xutftowcs_long_path(wnewpath, newpath) < 0)
26802675
return -1;

0 commit comments

Comments
 (0)