Zebediah Figura : server: Make sure that async_request_complete() is called in the case of a failed connection as well.
Alexandre Julliard
julliard at winehq.org
Tue Sep 7 16:25:18 CDT 2021
Module: wine
Branch: master
Commit: 08eaf8f4819ce2dc2c0463817f2e77cc456cdb74
URL: https://source.winehq.org/git/wine.git/?a=commit;h=08eaf8f4819ce2dc2c0463817f2e77cc456cdb74
Author: Zebediah Figura <zfigura at codeweavers.com>
Date: Mon Sep 6 19:12:22 2021 -0500
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=51726
Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
server/sock.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server/sock.c b/server/sock.c
index 3c5f2612b51..6452cfb0dd7 100644
--- a/server/sock.c
+++ b/server/sock.c
@@ -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] );
}
More information about the wine-cvs
mailing list