ws2_32: Fix copy & paste error in fd_sets_to_poll (Coverity)
Bruno Jesus
00cpxxx at gmail.com
Sun Apr 5 09:48:57 CDT 2015
Also most likely fixes bug https://bugs.winehq.org/show_bug.cgi?id=38361
Independent of patch 110549.
-------------- next part --------------
diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c
index 09c8416..e6da757 100644
--- a/dlls/ws2_32/socket.c
+++ b/dlls/ws2_32/socket.c
@@ -4628,7 +4628,7 @@ static struct pollfd *fd_sets_to_poll( const WS_fd_set *readfds, const WS_fd_set
}
else
{
- release_sock_fd( readfds->fd_array[i], fds[j].fd );
+ release_sock_fd( writefds->fd_array[i], fds[j].fd );
fds[j].fd = -1;
fds[j].events = 0;
}
@@ -4653,7 +4653,7 @@ static struct pollfd *fd_sets_to_poll( const WS_fd_set *readfds, const WS_fd_set
}
else
{
- release_sock_fd( readfds->fd_array[i], fds[j].fd );
+ release_sock_fd( exceptfds->fd_array[i], fds[j].fd );
fds[j].fd = -1;
fds[j].events = 0;
}
More information about the wine-patches
mailing list