Commit in reactos/drivers/net/ndis/ndis on MAIN
io.c+1-21.14 -> 1.15
- Fixed a wrong index, which resulted in writing over the end of an allocated buffer.

reactos/drivers/net/ndis/ndis
io.c 1.14 -> 1.15
diff -u -r1.14 -r1.15
--- io.c	10 Feb 2004 18:11:12 -0000	1.14
+++ io.c	21 Feb 2004 12:58:49 -0000	1.15
@@ -426,6 +426,7 @@
     {
       NDIS_DbgPrint(MAX_TRACE, ("iterating, basemapregistersneeded = %d, IoAlloc = 0x%x\n", BaseMapRegistersNeeded, IoAllocateAdapterChannel));
 
+      BaseMapRegistersNeeded--;
       Adapter->NdisMiniportBlock.CurrentMapRegister = BaseMapRegistersNeeded;
       KeRaiseIrql(DISPATCH_LEVEL, &OldIrql);
         {
@@ -453,8 +454,6 @@
       NDIS_DbgPrint(MAX_TRACE, ("resetting event\n"));
 
       KeResetEvent(&Adapter->DmaEvent);
-
-      BaseMapRegistersNeeded--;
     }
 
   NDIS_DbgPrint(MAX_TRACE, ("returning success\n"));
CVSspam 0.2.8