Zebediah Figura : server: Do not bother clearing events in IOCTL_AFD_WINE_CONNECT.

Alexandre Julliard julliard at winehq.org
Fri Jun 11 15:31:29 CDT 2021


Module: wine
Branch: master
Commit: 139e95df619f8bb1069ae206c40539f930bc3718
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=139e95df619f8bb1069ae206c40539f930bc3718

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Thu Jun 10 19:36:27 2021 -0500

server: Do not bother clearing events in IOCTL_AFD_WINE_CONNECT.

Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 server/sock.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/server/sock.c b/server/sock.c
index aa2c6842efc..827eba52117 100644
--- a/server/sock.c
+++ b/server/sock.c
@@ -610,8 +610,6 @@ static void complete_async_connect( struct sock *sock )
 
     if (debug_level) fprintf( stderr, "completing connect request for socket %p\n", sock );
 
-    sock->pending_events &= ~(FD_CONNECT | FD_READ | FD_WRITE);
-    sock->reported_events &= ~(FD_CONNECT | FD_READ | FD_WRITE);
     sock->state = SOCK_CONNECTED;
 
     if (!req->send_len)
@@ -1846,9 +1844,6 @@ static int sock_ioctl( struct fd *fd, ioctl_code_t code, struct async *async )
         /* a connected or connecting socket can no longer be accepted into */
         allow_fd_caching( sock->fd );
 
-        sock->pending_events &= ~(FD_CONNECT | FD_READ | FD_WRITE);
-        sock->reported_events &= ~(FD_CONNECT | FD_READ | FD_WRITE);
-
         if (!ret)
         {
             sock->state = SOCK_CONNECTED;




More information about the wine-cvs mailing list