Commit 08eaf8f4 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

server: Make sure that async_request_complete() is called in the case of a…

server: Make sure that async_request_complete() is called in the case of a failed connection as well. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51726Signed-off-by: 's avatarZebediah Figura <zfigura@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 0d22e845
......@@ -2905,7 +2905,7 @@ static void poll_socket( struct sock *poll_sock, struct async *async, timeout_t
/* FIXME: do other error conditions deserve a similar treatment? */
if (sock->state != SOCK_CONNECTING && sock->errors[AFD_POLL_BIT_CONNECT_ERR] && (mask & AFD_POLL_CONNECT_ERR))
{
req->iosb->status = STATUS_SUCCESS;
signaled = TRUE;
output[i].flags |= AFD_POLL_CONNECT_ERR;
output[i].status = sock_get_ntstatus( sock->errors[AFD_POLL_BIT_CONNECT_ERR] );
}
......
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