mirror of
https://github.com/reactos/reactos.git
synced 2025-07-05 11:41:23 +00:00
DeviceNode->ResourceList and DeviceNode->ResourceListTranslated should not share memory with DeviceNode->BootResources
svn path=/trunk/; revision=24170
This commit is contained in:
parent
adb93d9531
commit
3ab77c0239
1 changed files with 6 additions and 7 deletions
|
@ -132,6 +132,12 @@ IopStartDevice(
|
||||||
Stack.Parameters.StartDevice.AllocatedResources = DeviceNode->ResourceList;
|
Stack.Parameters.StartDevice.AllocatedResources = DeviceNode->ResourceList;
|
||||||
Stack.Parameters.StartDevice.AllocatedResourcesTranslated = DeviceNode->ResourceListTranslated;
|
Stack.Parameters.StartDevice.AllocatedResourcesTranslated = DeviceNode->ResourceListTranslated;
|
||||||
|
|
||||||
|
/* FIXME: Not sure of this! */
|
||||||
|
if (!Stack.Parameters.StartDevice.AllocatedResources)
|
||||||
|
Stack.Parameters.StartDevice.AllocatedResources = DeviceNode->BootResources;
|
||||||
|
if (!Stack.Parameters.StartDevice.AllocatedResourcesTranslated)
|
||||||
|
Stack.Parameters.StartDevice.AllocatedResourcesTranslated = DeviceNode->BootResources;
|
||||||
|
|
||||||
Status = IopInitiatePnpIrp(
|
Status = IopInitiatePnpIrp(
|
||||||
Fdo,
|
Fdo,
|
||||||
&IoStatusBlock,
|
&IoStatusBlock,
|
||||||
|
@ -1233,13 +1239,6 @@ IopAssignDeviceResources(PDEVICE_NODE DeviceNode)
|
||||||
ULONG i;
|
ULONG i;
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
|
|
||||||
if (DeviceNode->BootResources)
|
|
||||||
{
|
|
||||||
/* FIXME: Not sure of this! */
|
|
||||||
DeviceNode->ResourceList = DeviceNode->ResourceListTranslated = DeviceNode->BootResources;
|
|
||||||
return STATUS_SUCCESS;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Fill DeviceNode->ResourceList and DeviceNode->ResourceListTranslated;
|
/* Fill DeviceNode->ResourceList and DeviceNode->ResourceListTranslated;
|
||||||
* by using DeviceNode->ResourceRequirements */
|
* by using DeviceNode->ResourceRequirements */
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue