Jacek Caban : wininet: Properly check for ioctlsocket failure in NETCON_is_alive.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Feb 12 10:13:40 CST 2015
Module: wine
Branch: master
Commit: f3e02c2fc06082419f57e2eebaa09f1381c12ff0
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f3e02c2fc06082419f57e2eebaa09f1381c12ff0
Author: Jacek Caban <jacek at codeweavers.com>
Date: Wed Feb 11 19:37:58 2015 +0100
wininet: Properly check for ioctlsocket failure in NETCON_is_alive.
---
dlls/wininet/netconnection.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/wininet/netconnection.c b/dlls/wininet/netconnection.c
index 6747a81..fc46492 100644
--- a/dlls/wininet/netconnection.c
+++ b/dlls/wininet/netconnection.c
@@ -1047,13 +1047,13 @@ BOOL NETCON_is_alive(netconn_t *netconn)
char b;
mode = 1;
- if(!ioctlsocket(netconn->socket, FIONBIO, &mode))
+ if(ioctlsocket(netconn->socket, FIONBIO, &mode))
return FALSE;
len = sock_recv(netconn->socket, &b, 1, MSG_PEEK);
mode = 0;
- if(!ioctlsocket(netconn->socket, FIONBIO, &mode))
+ if(ioctlsocket(netconn->socket, FIONBIO, &mode))
return FALSE;
return len == 1 || (len == -1 && sock_get_error() == WSAEWOULDBLOCK);
More information about the wine-cvs
mailing list