diff options
Diffstat (limited to 'otherlibs/win32unix/shutdown.c')
-rw-r--r-- | otherlibs/win32unix/shutdown.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/otherlibs/win32unix/shutdown.c b/otherlibs/win32unix/shutdown.c index bf1e8c911..25373464e 100644 --- a/otherlibs/win32unix/shutdown.c +++ b/otherlibs/win32unix/shutdown.c @@ -24,7 +24,9 @@ CAMLprim value unix_shutdown(sock, cmd) value sock, cmd; { if (shutdown((SOCKET) Handle_val(sock), - shutdown_command_table[Int_val(cmd)]) == -1) - unix_error(WSAGetLastError(), "shutdown", Nothing); + shutdown_command_table[Int_val(cmd)]) == -1) { + win32_maperr(WSAGetLastError()); + uerror("shutdown", Nothing); + } return Val_unit; } |