Author: cgutman
Date: Thu Jun 4 22:00:17 2009
New Revision: 41287
URL:
http://svn.reactos.org/svn/reactos?rev=41287&view=rev
Log:
- Fix the map register count check
Modified:
trunk/reactos/drivers/network/ndis/ndis/io.c
Modified: trunk/reactos/drivers/network/ndis/ndis/io.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/ndis/ndis/…
==============================================================================
--- trunk/reactos/drivers/network/ndis/ndis/io.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/ndis/ndis/io.c [iso-8859-1] Thu Jun 4 22:00:17 2009
@@ -322,10 +322,10 @@
Adapter->NdisMiniportBlock.SystemAdapterObject = AdapterObject;
- if(AvailableMapRegisters < MapRegistersPerBaseRegister)
+ if(AvailableMapRegisters < MapRegistersPerBaseRegister * BaseMapRegistersNeeded)
{
NDIS_DbgPrint(MIN_TRACE, ("Didn't get enough map registers from hal -
requested 0x%x, got 0x%x\n",
- MapRegistersPerBaseRegister, AvailableMapRegisters));
+ MapRegistersPerBaseRegister * BaseMapRegistersNeeded, AvailableMapRegisters));
AdapterObject->DmaOperations->PutDmaAdapter(AdapterObject);
Adapter->NdisMiniportBlock.SystemAdapterObject = NULL;