Fixed incorrect cast in WSOCK32_send and WSOCK32_recvfrom.

This commit is contained in:
Francois Gouget 2001-05-07 18:14:35 +00:00 committed by Alexandre Julliard
parent e533a3f130
commit 9a8a106f2b
1 changed files with 2 additions and 2 deletions

View File

@ -1711,7 +1711,7 @@ INT WINAPI WSOCK32_recvfrom(SOCKET s, char *buf, INT len, INT flags,
#endif
close(fd);
_enable_event(s, FD_READ, 0, 0);
return (INT16)length;
return length;
}
SetLastError(wsaErrno());
close(fd);
@ -1855,7 +1855,7 @@ INT WINAPI WSOCK32_send(SOCKET s, char *buf, INT len, INT flags)
else
{
close(fd);
return (INT16)length;
return length;
}
close(fd);
}