Commit 609dfea1 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

server: Also clear pending events in set_socket_event.

In particular, prevent FD_CONNECT from being reported when not selected for. Signed-off-by: 's avatarZebediah Figura <z.figura12@gmail.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 226897be
......@@ -1809,7 +1809,10 @@ DECL_HANDLER(set_socket_event)
old_event = sock->event;
sock->mask = req->mask;
if (req->window)
sock->reported_events &= ~req->mask; /* re-enable held events */
{
sock->pending_events &= ~req->mask;
sock->reported_events &= ~req->mask;
}
sock->event = NULL;
sock->window = req->window;
sock->message = req->msg;
......
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