Author: cgutman
Date: Thu Aug 18 00:04:49 2011
New Revision: 53290
URL:
http://svn.reactos.org/svn/reactos?rev=53290&view=rev
Log:
[NTOSKRNL]
- Uncomment a device node traversal check
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.…
==============================================================================
--- trunk/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c [iso-8859-1] Thu Aug 18 00:04:49 2011
@@ -2118,7 +2118,7 @@
* 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 @@
DPRINT("Stop\n");
return STATUS_UNSUCCESSFUL;
}
-#endif
+
if (IopDeviceNodeHasFlag(DeviceNode, DNF_STARTED) ||
IopDeviceNodeHasFlag(DeviceNode, DNF_ADDED) ||
IopDeviceNodeHasFlag(DeviceNode, DNF_DISABLED))