Commit 2f0153df authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

server: Translate AFD_POLL_RESET to FD_CLOSE plus WSAECONNABORTED in window messages.

parent a866d16f
......@@ -7134,7 +7134,7 @@ static void test_close_events(struct event_test_ctx *ctx)
close_with_rst(client);
check_events_todo_msg(ctx, MAKELONG(FD_CLOSE, WSAECONNABORTED), 0, 200);
check_events(ctx, MAKELONG(FD_CLOSE, WSAECONNABORTED), 0, 200);
check_events(ctx, 0, 0, 0);
select_events(ctx, server, FD_ACCEPT | FD_CLOSE | FD_CONNECT | FD_OOB | FD_READ);
if (ctx->is_message)
......
......@@ -800,7 +800,11 @@ static void post_sock_messages( struct sock *sock )
enum afd_poll_bit event = event_bitorder[i];
if (events & (1 << event))
{
lparam_t lparam = afd_poll_flag_to_win32(1 << event) | (sock_get_error( sock->errors[event] ) << 16);
lparam_t lparam;
if (event == AFD_POLL_BIT_RESET)
lparam = FD_CLOSE | (WSAECONNABORTED << 16);
else
lparam = afd_poll_flag_to_win32(1 << event) | (sock_get_error( sock->errors[event] ) << 16);
post_message( sock->window, sock->message, sock->wparam, lparam );
}
}
......
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