Bruno Jesus : ws2_32: Fix copy & paste error in fd_sets_to_poll (Coverity) .

Alexandre Julliard julliard at wine.codeweavers.com
Mon Apr 6 10:34:18 CDT 2015


Module: wine
Branch: master
Commit: 5c8aad8d76828dd60a4e9d3639d546eaa586d68a
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=5c8aad8d76828dd60a4e9d3639d546eaa586d68a

Author: Bruno Jesus <00cpxxx at 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;
             }




More information about the wine-cvs mailing list