Bruno Jesus : ws2_32: Remove an unnecessary test.
Alexandre Julliard
julliard at winehq.org
Fri Sep 9 10:56:45 CDT 2011
Module: wine
Branch: master
Commit: 8f3dabf3c478c5aa7bbb05253ed3046664af9391
URL: http://source.winehq.org/git/wine.git/?a=commit;h=8f3dabf3c478c5aa7bbb05253ed3046664af9391
Author: Bruno Jesus <00cpxxx at gmail.com>
Date: Thu Sep 8 19:17:51 2011 -0300
ws2_32: Remove an unnecessary test.
---
dlls/ws2_32/socket.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c
index ef24723..bfe34ce 100644
--- a/dlls/ws2_32/socket.c
+++ b/dlls/ws2_32/socket.c
@@ -3388,9 +3388,9 @@ INT WINAPI WSAIoctl(SOCKET s, DWORD code, LPVOID in_buff, DWORD in_size, LPVOID
/* these values need to be set only if SO_KEEPALIVE is enabled */
else if(keepalive)
{
- if (keepidle && setsockopt(fd, IPPROTO_TCP, TCP_KEEPIDLE, (void *)&keepidle, sizeof(int)) == -1)
+ if (setsockopt(fd, IPPROTO_TCP, TCP_KEEPIDLE, (void *)&keepidle, sizeof(int)) == -1)
status = WSAEINVAL;
- else if (keepintvl && setsockopt(fd, IPPROTO_TCP, TCP_KEEPINTVL, (void *)&keepintvl, sizeof(int)) == -1)
+ else if (setsockopt(fd, IPPROTO_TCP, TCP_KEEPINTVL, (void *)&keepintvl, sizeof(int)) == -1)
status = WSAEINVAL;
}
#else
More information about the wine-cvs
mailing list