ws2_32: Sending 0 bytes shouldn't cause an infinite loop.

This commit is contained in:
Damjan Jovanovic 2007-07-24 07:44:57 +02:00 committed by Alexandre Julliard
parent f4147ca004
commit 827644ad71

View file

@ -2714,7 +2714,7 @@ INT WINAPI WSASendTo( SOCKET s, LPWSABUF lpBuffers, DWORD dwBufferCount,
struct pollfd pfd;
int timeout = GET_SNDTIMEO(fd);
if (n > 0)
if (n >= 0)
{
*lpNumberOfBytesSent += n;
while (first_buff < dwBufferCount && iovec[first_buff].iov_len <= n)