wininet: Properly handle EWOULDBLOCK return from connect().

This commit is contained in:
Jacek Caban 2015-02-11 19:38:08 +01:00 committed by Alexandre Julliard
parent f3e02c2fc0
commit 4fe1be148e
1 changed files with 1 additions and 1 deletions

View File

@ -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;