mirror of
https://github.com/reactos/reactos.git
synced 2025-04-26 08:30:21 +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;
|
||||
}
|
||||
|
||||
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);
|
||||
|
|
Loading…
Reference in a new issue