mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 16:52:59 +00:00
- Also copy AllocatedResources from the stack to NdisMiniportBlock.Resources
svn path=/trunk/; revision=40706
This commit is contained in:
parent
d46c77f118
commit
6fff9d423e
1 changed files with 13 additions and 0 deletions
|
@ -1727,6 +1727,19 @@ NdisIPnPStartDevice(
|
||||||
return STATUS_INSUFFICIENT_RESOURCES;
|
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,
|
RtlCopyMemory(Adapter->NdisMiniportBlock.AllocatedResources,
|
||||||
Stack->Parameters.StartDevice.AllocatedResources,
|
Stack->Parameters.StartDevice.AllocatedResources,
|
||||||
ResourceListSize);
|
ResourceListSize);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue