Module: wine Branch: master Commit: f50b8b8ac1daff210ebc0749875be801d51d3801 URL: http://source.winehq.org/git/wine.git/?a=commit;h=f50b8b8ac1daff210ebc074987... Author: Marcus Meissner <marcus(a)jet.franken.de> Date: Thu Jun 16 13:58:12 2011 +0200 ws2_32: Fixed select() number of fds (Coverity). --- dlls/ws2_32/tests/sock.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/ws2_32/tests/sock.c b/dlls/ws2_32/tests/sock.c index de9c400..29c97e2 100644 --- a/dlls/ws2_32/tests/sock.c +++ b/dlls/ws2_32/tests/sock.c @@ -2958,7 +2958,7 @@ static DWORD WINAPI drain_socket_thread(LPVOID arg) fd_set readset; FD_ZERO(&readset); FD_SET(sock, &readset); - select(0, &readset, NULL, NULL, NULL); + select(sock+1, &readset, NULL, NULL, NULL); while (drain_pause) Sleep(100); }