Damjan Jovanovic : ws2_32: Sending 0 bytes shouldn't cause an
infinite loop .
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Jul 24 07:06:19 CDT 2007
Module: wine
Branch: master
Commit: 827644ad718856ec8e940cd4d5a0fa692f5ab37c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=827644ad718856ec8e940cd4d5a0fa692f5ab37c
Author: Damjan Jovanovic <damjan.jov at gmail.com>
Date: Tue Jul 24 07:44:57 2007 +0200
ws2_32: Sending 0 bytes shouldn't cause an infinite loop.
---
dlls/ws2_32/socket.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c
index 0a6597d..5a27fce 100644
--- a/dlls/ws2_32/socket.c
+++ b/dlls/ws2_32/socket.c
@@ -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)
More information about the wine-cvs
mailing list