Added missing pending check (pointed out by filip).
authorArt Yerkes <art.yerkes@gmail.com>
Sat, 18 Dec 2004 20:10:39 +0000 (20:10 +0000)
committerArt Yerkes <art.yerkes@gmail.com>
Sat, 18 Dec 2004 20:10:39 +0000 (20:10 +0000)
svn path=/trunk/; revision=12198

reactos/drivers/net/ndis/ndis/miniport.c

index 6922fe4..1ed5166 100644 (file)
@@ -841,9 +841,11 @@ VOID STDCALL MiniportDpc(
 
                 NDIS_DbgPrint(MAX_TRACE, ("back from miniport's Send handler\n"));
               }
-           NdisMSendComplete
-               ( Adapter, (PNDIS_PACKET)WorkItemContext, NdisStatus );
-           Adapter->MiniportBusy = FALSE;
+           if( NdisStatus == NDIS_STATUS_PENDING ) {
+               NdisMSendComplete
+                   ( Adapter, (PNDIS_PACKET)WorkItemContext, NdisStatus );
+               Adapter->MiniportBusy = FALSE;
+           }
             break;
 
           case NdisWorkItemSendLoopback: