ws2_32: Fix copy & paste error in fd_sets_to_poll (Coverity).
This commit is contained in:
parent
77a63b7245
commit
5c8aad8d76
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue