ws2_32: Fixed select() number of fds (Coverity).

This commit is contained in:
Marcus Meissner 2011-06-16 13:58:12 +02:00 committed by Alexandre Julliard
parent a75402af96
commit f50b8b8ac1
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}