From 4fe1be148e7320473775a2ddfba489259bce5955 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Wed, 11 Feb 2015 19:38:08 +0100 Subject: [PATCH] wininet: Properly handle EWOULDBLOCK return from connect(). --- dlls/wininet/netconnection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wininet/netconnection.c b/dlls/wininet/netconnection.c index fc464927b49..872daece36e 100644 --- a/dlls/wininet/netconnection.c +++ b/dlls/wininet/netconnection.c @@ -330,7 +330,7 @@ static DWORD create_netconn_socket(server_t *server, netconn_t *netconn, DWORD t result = connect(netconn->socket, (struct sockaddr*)&server->addr, server->addr_len); if(result == -1) { - if (sock_get_error() == WSAEINPROGRESS) { + if (sock_get_error() == WSAEINPROGRESS || sock_get_error() == WSAEWOULDBLOCK) { struct pollfd pfd; int res;