Commit 21dfab61 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

ws2_32: Map AFD_POLL_RESET to both POLLHUP and POLLERR.

parent feb97eaa
......@@ -2974,7 +2974,7 @@ int WINAPI WSAPoll( WSAPOLLFD *fds, ULONG count, int timeout )
revents |= POLLRDBAND;
if (params->sockets[j].flags & AFD_POLL_WRITE)
revents |= POLLWRNORM;
if (params->sockets[j].flags & AFD_POLL_HUP)
if (params->sockets[j].flags & (AFD_POLL_RESET | AFD_POLL_HUP))
revents |= POLLHUP;
if (params->sockets[j].flags & (AFD_POLL_RESET | AFD_POLL_CONNECT_ERR))
revents |= POLLERR;
......
......@@ -12871,7 +12871,7 @@ static void test_tcp_reset(void)
todo_wine ok(ret == -1, "got %d\n", ret);
todo_wine ok(WSAGetLastError() == WSAECONNRESET, "got error %u\n", WSAGetLastError());
check_poll_todo(client, POLLERR | POLLHUP | POLLWRNORM);
check_poll(client, POLLERR | POLLHUP | POLLWRNORM);
FD_ZERO(&readfds);
FD_ZERO(&writefds);
......
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