mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-15 06:50:23 +00:00
ws2_32: Sending 0 bytes shouldn't cause an infinite loop.
This commit is contained in:
parent
f4147ca004
commit
827644ad71
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue