Mike Kaplinskiy : ws2_32: Use the iosb to keep track of how many bytes we sent.

Alexandre Julliard julliard at winehq.org
Mon Jan 24 11:07:39 CST 2011


Module: wine
Branch: master
Commit: a06144d9caaac3697def66c1c69fc1bb73cf1e87
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=a06144d9caaac3697def66c1c69fc1bb73cf1e87

Author: Mike Kaplinskiy <mike.kaplinskiy at gmail.com>
Date:   Mon Jan 24 00:19:19 2011 -0500

ws2_32: Use the iosb to keep track of how many bytes we sent.

---

 dlls/ws2_32/socket.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c
index 6b3925b..66def56 100644
--- a/dlls/ws2_32/socket.c
+++ b/dlls/ws2_32/socket.c
@@ -1807,6 +1807,7 @@ static NTSTATUS WS2_async_send(void* user, IO_STATUS_BLOCK* iosb, NTSTATUS statu
         if (result >= 0)
         {
             status = STATUS_SUCCESS;
+            iosb->Information += result;
         }
         else if (errno == EINTR || errno == EAGAIN)
         {
@@ -1815,14 +1816,12 @@ static NTSTATUS WS2_async_send(void* user, IO_STATUS_BLOCK* iosb, NTSTATUS statu
         else
         {
             status = wsaErrStatus();
-            result = 0;
         }
         break;
     }
     if (status != STATUS_PENDING)
     {
         iosb->u.Status = status;
-        iosb->Information = result;
         *apc = ws2_async_apc;
     }
     return status;




More information about the wine-cvs mailing list