[ros-diffs] [cgutman] 41265: - Remove an incorrect comment (I wasn't thinking when I wrote it ; )) - Add an ASSERT for an unhandled case

cgutman at svn.reactos.org cgutman at svn.reactos.org
Wed Jun 3 03:48:49 CEST 2009


Author: cgutman
Date: Wed Jun  3 05:48:47 2009
New Revision: 41265

URL: http://svn.reactos.org/svn/reactos?rev=41265&view=rev
Log:
 - Remove an incorrect comment (I wasn't thinking when I wrote it ;))
 - Add an ASSERT for an unhandled case

Modified:
    trunk/reactos/drivers/network/ndis/ndis/miniport.c

Modified: trunk/reactos/drivers/network/ndis/ndis/miniport.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/ndis/ndis/miniport.c?rev=41265&r1=41264&r2=41265&view=diff
==============================================================================
--- trunk/reactos/drivers/network/ndis/ndis/miniport.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/ndis/ndis/miniport.c [iso-8859-1] Wed Jun  3 05:48:47 2009
@@ -441,7 +441,6 @@
 
     KeRaiseIrql(DISPATCH_LEVEL, &OldIrql);
 
-    /* Should we free this before or after calling SendComplete? */
     if (Adapter->NdisMiniportBlock.ScatterGatherListSize != 0)
     {
         NDIS_DbgPrint(MAX_TRACE, ("Freeing Scatter/Gather list\n"));
@@ -684,6 +683,8 @@
   KeLowerIrql(OldIrql);
 
   /* FIXME: Wait in pending case! */
+
+  ASSERT(NdisStatus != NDIS_STATUS_PENDING);
 
   return NdisStatus;
 }



More information about the Ros-diffs mailing list