Commit 9a8a106f authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

Fixed incorrect cast in WSOCK32_send and WSOCK32_recvfrom.

parent e533a3f1
...@@ -1711,7 +1711,7 @@ INT WINAPI WSOCK32_recvfrom(SOCKET s, char *buf, INT len, INT flags, ...@@ -1711,7 +1711,7 @@ INT WINAPI WSOCK32_recvfrom(SOCKET s, char *buf, INT len, INT flags,
#endif #endif
close(fd); close(fd);
_enable_event(s, FD_READ, 0, 0); _enable_event(s, FD_READ, 0, 0);
return (INT16)length; return length;
} }
SetLastError(wsaErrno()); SetLastError(wsaErrno());
close(fd); close(fd);
...@@ -1855,7 +1855,7 @@ INT WINAPI WSOCK32_send(SOCKET s, char *buf, INT len, INT flags) ...@@ -1855,7 +1855,7 @@ INT WINAPI WSOCK32_send(SOCKET s, char *buf, INT len, INT flags)
else else
{ {
close(fd); close(fd);
return (INT16)length; return length;
} }
close(fd); close(fd);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment