[ros-diffs] [cgutman] 37299: - Remove the irp from the queue when it gets canceled - Initialize BytesReceived to 0

cgutman at svn.reactos.org cgutman at svn.reactos.org
Wed Nov 12 02:06:54 CET 2008


Author: cgutman
Date: Tue Nov 11 19:06:54 2008
New Revision: 37299

URL: http://svn.reactos.org/svn/reactos?rev=37299&view=rev
Log:
 - Remove the irp from the queue when it gets canceled
 - Initialize BytesReceived to 0

Modified:
    branches/aicom-network-fixes/drivers/network/tcpip/tcpip/dispatch.c

Modified: branches/aicom-network-fixes/drivers/network/tcpip/tcpip/dispatch.c
URL: http://svn.reactos.org/svn/reactos/branches/aicom-network-fixes/drivers/network/tcpip/tcpip/dispatch.c?rev=37299&r1=37298&r2=37299&view=diff
==============================================================================
--- branches/aicom-network-fixes/drivers/network/tcpip/tcpip/dispatch.c [iso-8859-1] (original)
+++ branches/aicom-network-fixes/drivers/network/tcpip/tcpip/dispatch.c [iso-8859-1] Tue Nov 11 19:06:54 2008
@@ -188,6 +188,8 @@
             TI_DbgPrint(MIN_TRACE, ("TDI_SEND_DATAGRAM, but no address file.\n"));
             break;
         }
+
+        DGRemoveIRP(TranContext->Handle.AddressHandle, Irp);
         break;
 
     case TDI_RECEIVE_DATAGRAM:
@@ -767,7 +769,7 @@
   PTDI_REQUEST_KERNEL_RECEIVE ReceiveInfo;
   PTRANSPORT_CONTEXT TranContext;
   NTSTATUS Status;
-  ULONG BytesReceived;
+  ULONG BytesReceived = 0;
 
   TI_DbgPrint(DEBUG_IRP, ("Called.\n"));
 



More information about the Ros-diffs mailing list