Author: cgutman
Date: Sun Apr 26 09:35:24 2009
New Revision: 40706
URL:
http://svn.reactos.org/svn/reactos?rev=40706&view=rev
Log:
- Also copy AllocatedResources from the stack to NdisMiniportBlock.Resources
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/…
==============================================================================
--- trunk/reactos/drivers/network/ndis/ndis/miniport.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/ndis/ndis/miniport.c [iso-8859-1] Sun Apr 26 09:35:24
2009
@@ -1727,6 +1727,19 @@
return STATUS_INSUFFICIENT_RESOURCES;
}
+ Adapter->NdisMiniportBlock.Resources =
+ ExAllocatePool(PagedPool, ResourceListSize);
+ if (!Adapter->NdisMiniportBlock.Resources)
+ {
+ ExFreePool(Adapter->NdisMiniportBlock.AllocatedResources);
+ ExInterlockedRemoveEntryList(&Adapter->ListEntry,
&AdapterListLock);
+ return STATUS_INSUFFICIENT_RESOURCES;
+ }
+
+ RtlCopyMemory(Adapter->NdisMiniportBlock.Resources,
+ Stack->Parameters.StartDevice.AllocatedResources,
+ ResourceListSize);
+
RtlCopyMemory(Adapter->NdisMiniportBlock.AllocatedResources,
Stack->Parameters.StartDevice.AllocatedResources,
ResourceListSize);