Jacek Caban : wininet: Properly handle EWOULDBLOCK return from connect().
Module: wine Branch: master Commit: 4fe1be148e7320473775a2ddfba489259bce5955 URL: http://source.winehq.org/git/wine.git/?a=commit;h=4fe1be148e7320473775a2ddfb... Author: Jacek Caban <jacek(a)codeweavers.com> Date: Wed Feb 11 19:38:08 2015 +0100 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 fc46492..872daec 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;
participants (1)
-
Alexandre Julliard