We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8841ba4 + 04fa83c commit 46cdf7fCopy full SHA for 46cdf7f
compat/mingw.c
@@ -2698,13 +2698,8 @@ int mingw_raise(int sig)
2698
2699
int link(const char *oldpath, const char *newpath)
2700
{
2701
- DECLARE_PROC_ADDR(kernel32.dll, BOOL, CreateHardLinkW,
2702
- LPCWSTR, LPCWSTR, LPSECURITY_ATTRIBUTES);
2703
wchar_t woldpath[MAX_LONG_PATH], wnewpath[MAX_LONG_PATH];
2704
2705
- if (!INIT_PROC_ADDR(CreateHardLinkW))
2706
- return -1;
2707
-
2708
if (xutftowcs_long_path(woldpath, oldpath) < 0 ||
2709
xutftowcs_long_path(wnewpath, newpath) < 0)
2710
return -1;
0 commit comments