server: Revert b4a1d80ae3 for now.

It breaks too many things.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48357
Signed-off-by: Damjan Jovanovic <damjan.jov@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Damjan Jovanovic 2020-01-05 20:32:31 +02:00 committed by Alexandre Julliard
parent 5b96ed0207
commit 37dec9f144
2 changed files with 4 additions and 3 deletions

View File

@ -3053,6 +3053,7 @@ static void test_WSAEnumNetworkEvents(void)
} }
else else
{ {
todo_wine_if (i != 0) /* Remove when fixed */
ok (net_events.lNetworkEvents == 0, "Test[%d]: expected 0, got %d\n", ok (net_events.lNetworkEvents == 0, "Test[%d]: expected 0, got %d\n",
i, net_events.lNetworkEvents); i, net_events.lNetworkEvents);
} }

View File

@ -1228,7 +1228,7 @@ DECL_HANDLER(set_socket_event)
FILE_WRITE_ATTRIBUTES, &sock_ops))) return; FILE_WRITE_ATTRIBUTES, &sock_ops))) return;
old_event = sock->event; old_event = sock->event;
sock->mask = req->mask; sock->mask = req->mask;
sock->hmask &= (FD_WRITE | ~req->mask); /* re-enable held events */ sock->hmask &= ~req->mask; /* re-enable held events */
sock->event = NULL; sock->event = NULL;
sock->window = req->window; sock->window = req->window;
sock->message = req->msg; sock->message = req->msg;