[ros-diffs] [cgutman] 46784: [NTOSKRNL] - Write the assigned resources to the registry

cgutman at svn.reactos.org cgutman at svn.reactos.org
Fri Apr 9 03:10:35 CEST 2010


Author: cgutman
Date: Fri Apr  9 03:10:34 2010
New Revision: 46784

URL: http://svn.reactos.org/svn/reactos?rev=46784&view=rev
Log:
[NTOSKRNL]
- Write the assigned resources to the registry

Modified:
    trunk/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c

Modified: trunk/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c?rev=46784&r1=46783&r2=46784&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c [iso-8859-1] Fri Apr  9 03:10:34 2010
@@ -245,6 +245,13 @@
 
    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);




More information about the Ros-diffs mailing list