Bruno Jesus : ws2_32: Fix copy & paste error in fd_sets_to_poll (Coverity) .
Module: wine Branch: master Commit: 5c8aad8d76828dd60a4e9d3639d546eaa586d68a URL: http://source.winehq.org/git/wine.git/?a=commit;h=5c8aad8d76828dd60a4e9d3639... Author: Bruno Jesus <00cpxxx(a)gmail.com> Date: Sun Apr 5 11:48:57 2015 -0300 ws2_32: Fix copy & paste error in fd_sets_to_poll (Coverity). --- dlls/ws2_32/socket.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c index d8d724b..7f3134e 100644 --- a/dlls/ws2_32/socket.c +++ b/dlls/ws2_32/socket.c @@ -4625,7 +4625,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; } @@ -4650,7 +4650,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; }
participants (1)
-
Alexandre Julliard