Commit f482eed2 authored by Bruno Jesus's avatar Bruno Jesus Committed by Alexandre Julliard

ws2_32: Trace accept() error.

parent 312dc5dc
......@@ -2737,10 +2737,7 @@ SOCKET WINAPI WS_accept(SOCKET s, struct WS_sockaddr *addr, int *addrlen32)
TRACE("socket %04lx\n", s );
status = _is_blocking(s, &is_blocking);
if (status)
{
set_error(status);
return INVALID_SOCKET;
}
goto error;
do {
/* try accepting first (if there is a deferred connection) */
......@@ -2773,7 +2770,9 @@ SOCKET WINAPI WS_accept(SOCKET s, struct WS_sockaddr *addr, int *addrlen32)
}
} while (is_blocking && status == STATUS_CANT_WAIT);
error:
set_error(status);
WARN(" -> ERROR %d\n", GetLastError());
return INVALID_SOCKET;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment