Author: cgutman Date: Sat Aug 6 06:18:02 2011 New Revision: 53094
URL: http://svn.reactos.org/svn/reactos?rev=53094&view=rev Log: [IP] - Fix the bytes sent value returned when the send fails
Modified: branches/GSoC_2011/TcpIpDriver/lib/drivers/ip/transport/tcp/tcp.c
Modified: branches/GSoC_2011/TcpIpDriver/lib/drivers/ip/transport/tcp/tcp.c URL: http://svn.reactos.org/svn/reactos/branches/GSoC_2011/TcpIpDriver/lib/driver... ============================================================================== --- branches/GSoC_2011/TcpIpDriver/lib/drivers/ip/transport/tcp/tcp.c [iso-8859-1] (original) +++ branches/GSoC_2011/TcpIpDriver/lib/drivers/ip/transport/tcp/tcp.c [iso-8859-1] Sat Aug 6 06:18:02 2011 @@ -570,11 +570,13 @@ InsertTailList( &Connection->SendRequest, &Bucket->Entry ); TI_DbgPrint(DEBUG_TCP,("[IP, TCPSendData] Queued write irp\n")); } + else if (Status == STATUS_SUCCESS) + { + *BytesSent = SendLength; + } else { - TI_DbgPrint(DEBUG_TCP,("[IP, TCPSendData] Got status %x, bytes %d\n", - Status, SendLength)); - *BytesSent = SendLength; + *BytesSent = 0; }
UnlockObject(Connection, OldIrql);