ws2_32: Trace accept() error.

Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Bruno Jesus 2017-02-19 15:54:31 -03:00 committed by Alexandre Julliard
parent 312dc5dc1d
commit f482eed298
1 changed files with 3 additions and 4 deletions

View File

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