server: Fix some comments.

Apparently windows reports only currently valid events for WSAEnumNetworkEvents.
This commit is contained in:
Mike Kaplinskiy 2010-07-27 00:16:28 -04:00 committed by Alexandre Julliard
parent 93db86a7e0
commit a6203f8b53
2 changed files with 3 additions and 4 deletions

View File

@ -3126,9 +3126,6 @@ static void test_events(int useMessages)
ok(ret == 2, "Failed to send buffer %d err %d\n", ret, GetLastError());
broken_seq[0] = read_read_seq; /* win9x */
broken_seq[1] = NULL;
/* we like to erase pmask in server, so we have varying behavior here *
* it is only fixed for now because we refuse to send notifications with
* any kind of asyncs requests running */
ok_event_seq(src, hEvent, empty_seq, broken_seq, 0);
dwRet = WaitForSingleObject(ov.hEvent, 100);

View File

@ -961,7 +961,9 @@ DECL_HANDLER(enable_socket_event)
FILE_WRITE_ATTRIBUTES, &sock_ops)))
return;
sock->pmask &= ~req->mask; /* is this safe? */
/* for event-based notification, windows erases stale events */
sock->pmask &= ~req->mask;
sock->hmask &= ~req->mask;
sock->state |= req->sstate;
sock->state &= ~req->cstate;