summaryrefslogtreecommitdiff
path: root/win32/win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'win32/win32.c')
-rw-r--r--win32/win32.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/win32/win32.c b/win32/win32.c
index 43c69078d4..4436464697 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -2593,7 +2593,7 @@ kill(int pid, int sig)
}
int
-link(char *from, char *to)
+link(const char *from, const char *to)
{
static BOOL (WINAPI *pCreateHardLink)(LPCTSTR, LPCTSTR, LPSECURITY_ATTRIBUTES) = NULL;
static int myerrno = 0;
@@ -2605,9 +2605,8 @@ link(char *from, char *to)
if (hKernel) {
pCreateHardLink = (BOOL (WINAPI *)(LPCTSTR, LPCTSTR, LPSECURITY_ATTRIBUTES))GetProcAddress(hKernel, "CreateHardLinkA");
if (!pCreateHardLink) {
- myerrno = map_errno(GetLastError());
+ rb_notimplement();
}
- CloseHandle(hKernel);
}
else {
myerrno = map_errno(GetLastError());