mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 13:56:05 +00:00
[NTOSKRNL]
- Write the assigned resources to the registry svn path=/trunk/; revision=46784
This commit is contained in:
parent
56b6100451
commit
cbbd840d2a
1 changed files with 7 additions and 0 deletions
|
@ -246,6 +246,13 @@ IopStartDevice(
|
||||||
RtlInitUnicodeString(&KeyName, L"ActiveService");
|
RtlInitUnicodeString(&KeyName, L"ActiveService");
|
||||||
Status = ZwSetValueKey(ControlHandle, &KeyName, 0, REG_SZ, DeviceNode->ServiceName.Buffer, DeviceNode->ServiceName.Length);
|
Status = ZwSetValueKey(ControlHandle, &KeyName, 0, REG_SZ, DeviceNode->ServiceName.Buffer, DeviceNode->ServiceName.Length);
|
||||||
|
|
||||||
|
if (NT_SUCCESS(Status) && DeviceNode->ResourceList)
|
||||||
|
{
|
||||||
|
RtlInitUnicodeString(&KeyName, L"AllocConfig");
|
||||||
|
Status = ZwSetValueKey(ControlHandle, &KeyName, 0, REG_RESOURCE_LIST,
|
||||||
|
DeviceNode->ResourceList, CM_RESOURCE_LIST_SIZE(DeviceNode->ResourceList));
|
||||||
|
}
|
||||||
|
|
||||||
if (NT_SUCCESS(Status))
|
if (NT_SUCCESS(Status))
|
||||||
IopDeviceNodeSetFlag(DeviceNode, DNF_STARTED);
|
IopDeviceNodeSetFlag(DeviceNode, DNF_STARTED);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue