ws2_32: Treat optlen as unsigned in setsockopt() for SO_RCVTIMEO.
Signed-off-by: Paul Gofman <pgofman@codeweavers.com> Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
20e2edba07
commit
4fa4339748
|
@ -2827,6 +2827,7 @@ int WINAPI setsockopt( SOCKET s, int level, int optname, const char *optval, int
|
|||
return server_setsockopt( s, IOCTL_AFD_WINE_SET_SO_RCVBUF, optval, optlen );
|
||||
|
||||
case SO_RCVTIMEO:
|
||||
if (optlen < 0) optlen = 4;
|
||||
return server_setsockopt( s, IOCTL_AFD_WINE_SET_SO_RCVTIMEO, optval, optlen );
|
||||
|
||||
case SO_REUSEADDR:
|
||||
|
|
Loading…
Reference in New Issue