wine bugzilla #19397
Wolfgang Schwotzer
wolfgang.schwotzer at gmx.net
Sun Jul 18 15:38:19 CDT 2010
---
dlls/ws2_32/socket.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c
index 4191f80..e5d1350 100644
--- a/dlls/ws2_32/socket.c
+++ b/dlls/ws2_32/socket.c
@@ -1480,6 +1480,16 @@ static int WS2_send( int fd, struct ws2_async *wsa )
{
struct msghdr hdr;
union generic_unix_sockaddr unix_addr;
+ unsigned int totalBytes;
+ int i;
+
+ totalBytes = 0;
+ for (i = wsa->first_iovec; i < wsa->n_iovecs; i++)
+ {
+ totalBytes += wsa->iovec[i].iov_len;
+ }
+ if (totalBytes == 0)
+ return 0;
hdr.msg_name = NULL;
hdr.msg_namelen = 0;
--
1.6.3.3
--------------090503080006040208000501--
More information about the wine-patches
mailing list