Alexandre Julliard : ws2_32: Avoid UINT32_MAX.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri May 1 07:50:09 CDT 2015
Module: wine
Branch: master
Commit: 57e2d9ef753951e3f2e041d61b98e64cc679cf29
URL: http://source.winehq.org/git/wine.git/?a=commit;h=57e2d9ef753951e3f2e041d61b98e64cc679cf29
Author: Alexandre Julliard <julliard at winehq.org>
Date: Fri May 1 15:45:11 2015 +0900
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 52b5394..ef43186 100644
--- a/dlls/ws2_32/socket.c
+++ b/dlls/ws2_32/socket.c
@@ -33,6 +33,7 @@
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
+#include <limits.h>
#ifdef HAVE_SYS_IPC_H
# include <sys/ipc.h>
#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;
More information about the wine-cvs
mailing list