Commit 683d46a2 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

server: Clear only returned events in IOCTL_AFD_GET_EVENTS.

parent ad078be4
......@@ -5659,7 +5659,7 @@ static void test_connect_events(struct event_test_ctx *ctx)
if (ctx->is_message)
check_events(ctx, FD_WRITE, 0, 200);
else
check_events_todo(ctx, FD_CONNECT, 0, 200);
check_events(ctx, FD_CONNECT, 0, 200);
closesocket(client);
closesocket(server);
......@@ -5896,7 +5896,7 @@ static void test_read_events(struct event_test_ctx *ctx)
check_events(ctx, 0, 0, 0);
select_events(ctx, server, FD_ACCEPT | FD_CONNECT | FD_OOB | FD_READ | FD_WRITE);
check_events_todo_event(ctx, FD_READ, FD_WRITE, 200);
check_events(ctx, FD_READ, FD_WRITE, 200);
check_events(ctx, 0, 0, 0);
ret = sync_recv(server, buffer, 5, 0);
......@@ -6111,7 +6111,7 @@ static void test_close_events(struct event_test_ctx *ctx)
check_events(ctx, 0, 0, 200);
select_events(ctx, server, FD_ACCEPT | FD_CLOSE | FD_CONNECT | FD_OOB | FD_READ);
check_events_todo_event(ctx, FD_CLOSE, 0, 200);
check_events(ctx, FD_CLOSE, 0, 200);
closesocket(server);
}
......
......@@ -2516,7 +2516,7 @@ static void sock_ioctl( struct fd *fd, ioctl_code_t code, struct async *async )
for (i = 0; i < ARRAY_SIZE( params.status ); ++i)
params.status[i] = sock_get_ntstatus( sock->errors[i] );
sock->pending_events = 0;
sock->pending_events &= ~sock->mask;
sock_reselect( sock );
set_reply_data( &params, sizeof(params) );
......
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