From cbbd840d2ab0e282a215b90f882cd9697b2aef10 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Fri, 9 Apr 2010 01:10:34 +0000 Subject: [PATCH] [NTOSKRNL] - Write the assigned resources to the registry svn path=/trunk/; revision=46784 --- reactos/ntoskrnl/io/pnpmgr/pnpmgr.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c b/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c index 0213d04d13e..93e30dc3729 100644 --- a/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c +++ b/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c @@ -246,6 +246,13 @@ IopStartDevice( RtlInitUnicodeString(&KeyName, L"ActiveService"); 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)) IopDeviceNodeSetFlag(DeviceNode, DNF_STARTED); -- 2.17.1