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:
parent
312dc5dc1d
commit
f482eed298
|
@ -2737,10 +2737,7 @@ SOCKET WINAPI WS_accept(SOCKET s, struct WS_sockaddr *addr, int *addrlen32)
|
||||||
TRACE("socket %04lx\n", s );
|
TRACE("socket %04lx\n", s );
|
||||||
status = _is_blocking(s, &is_blocking);
|
status = _is_blocking(s, &is_blocking);
|
||||||
if (status)
|
if (status)
|
||||||
{
|
goto error;
|
||||||
set_error(status);
|
|
||||||
return INVALID_SOCKET;
|
|
||||||
}
|
|
||||||
|
|
||||||
do {
|
do {
|
||||||
/* try accepting first (if there is a deferred connection) */
|
/* 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);
|
} while (is_blocking && status == STATUS_CANT_WAIT);
|
||||||
|
|
||||||
|
error:
|
||||||
set_error(status);
|
set_error(status);
|
||||||
|
WARN(" -> ERROR %d\n", GetLastError());
|
||||||
return INVALID_SOCKET;
|
return INVALID_SOCKET;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue