[NTOSKRNL]
authorCameron Gutman <aicommander@gmail.com>
Thu, 18 Aug 2011 00:04:49 +0000 (00:04 +0000)
committerCameron Gutman <aicommander@gmail.com>
Thu, 18 Aug 2011 00:04:49 +0000 (00:04 +0000)
- Uncomment a device node traversal check

svn path=/trunk/; revision=53290

reactos/ntoskrnl/io/pnpmgr/pnpmgr.c

index 6f23b1f..f3f0ce0 100644 (file)
@@ -2118,7 +2118,7 @@ IopActionInitChildServices(PDEVICE_NODE DeviceNode,
     * Make sure this device node is a direct child of the parent device node
     * that is given as an argument
     */
-#if 0
+
    if (DeviceNode->Parent != ParentDeviceNode)
    {
       /*
@@ -2127,7 +2127,7 @@ IopActionInitChildServices(PDEVICE_NODE DeviceNode,
       DPRINT("Stop\n");
       return STATUS_UNSUCCESSFUL;
    }
-#endif
+
    if (IopDeviceNodeHasFlag(DeviceNode, DNF_STARTED) ||
        IopDeviceNodeHasFlag(DeviceNode, DNF_ADDED) ||
        IopDeviceNodeHasFlag(DeviceNode, DNF_DISABLED))