From 57e2d9ef753951e3f2e041d61b98e64cc679cf29 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 1 May 2015 15:45:11 +0900 Subject: [PATCH] ws2_32: Avoid UINT32_MAX. --- dlls/ws2_32/socket.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c index 52b53945ccc..ef43186ee0e 100644 --- a/dlls/ws2_32/socket.c +++ b/dlls/ws2_32/socket.c @@ -33,6 +33,7 @@ #include #include #include +#include #ifdef HAVE_SYS_IPC_H # include #endif @@ -3633,7 +3634,7 @@ INT WINAPI WS_getsockopt(SOCKET s, INT level, return SOCKET_ERROR; timeout = get_rcvsnd_timeo(fd, optname == WS_SO_RCVTIMEO); - *(int *)optval = timeout <= UINT32_MAX ? timeout : UINT32_MAX; + *(int *)optval = timeout <= UINT_MAX ? timeout : UINT_MAX; release_sock_fd( s, fd ); return ret; -- 2.11.4.GIT