summaryrefslogtreecommitdiffstats
path: root/otherlibs/win32unix/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'otherlibs/win32unix/socket.c')
-rw-r--r--otherlibs/win32unix/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/otherlibs/win32unix/socket.c b/otherlibs/win32unix/socket.c
index 05b6a096c..0ccace588 100644
--- a/otherlibs/win32unix/socket.c
+++ b/otherlibs/win32unix/socket.c
@@ -42,5 +42,5 @@ value unix_socket(domain, type, proto) /* ML */
_dosmaperr(WSAGetLastError());
uerror("socket", Nothing);
}
- return Val_int(_open_osfhandle(s, 0));
+ return win_alloc_handle((HANDLE) s);
}