Patch by Cameron Gutman (aicommander (at) gmail (dot) com)
authorArt Yerkes <art.yerkes@gmail.com>
Tue, 29 Jul 2008 21:52:09 +0000 (21:52 +0000)
committerArt Yerkes <art.yerkes@gmail.com>
Tue, 29 Jul 2008 21:52:09 +0000 (21:52 +0000)
- Remove a hack from DispTdiSendDatagram
- Fix a couple of bugs that resulted in clearing the wrong request

svn path=/trunk/; revision=34938

reactos/drivers/network/afd/afd/write.c
reactos/drivers/network/tcpip/tcpip/dispatch.c

index 19407d8..5236a8c 100644 (file)
@@ -41,7 +41,7 @@ static NTSTATUS NTAPI SendComplete
     ASSERT_IRQL(APC_LEVEL);
 
     if (Irp->Cancel) {
-        FCB->ReceiveIrp.InFlightRequest = NULL;
+        FCB->SendIrp.InFlightRequest = NULL;
         return STATUS_SUCCESS;
     }
 
@@ -175,7 +175,7 @@ static NTSTATUS NTAPI PacketSocketSendComplete
                            Irp->IoStatus.Information));
 
     if (Irp->Cancel) {
-        FCB->ReceiveIrp.InFlightRequest = NULL;
+        FCB->SendIrp.InFlightRequest = NULL;
         return STATUS_SUCCESS;
     }
 
index bee2e63..9c7cbec 100644 (file)
@@ -1018,9 +1018,6 @@ NTSTATUS DispTdiSendDatagram(
 
         if (Status != STATUS_PENDING) {
             DispDataRequestComplete(Irp, Status, Irp->IoStatus.Information);
-            /* Return STATUS_PENDING because DispPrepareIrpForCancel
-               marks Irp as pending */
-            Status = STATUS_PENDING;
         } else
            IoMarkIrpPending( Irp );
     }