[ros-diffs] [cgutman] 53094: [IP] - Fix the bytes sent value returned when the send fails
cgutman at svn.reactos.org
cgutman at svn.reactos.org
Sat Aug 6 06:18:03 UTC 2011
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/drivers/ip/transport/tcp/tcp.c?rev=53094&r1=53093&r2=53094&view=diff
==============================================================================
--- 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);
More information about the Ros-diffs
mailing list