Author: cgutman Date: Thu Feb 23 00:41:50 2012 New Revision: 55826
URL: http://svn.reactos.org/svn/reactos?rev=55826&view=rev Log: [NTOSKRNL] - Fix device node flag corruption
Modified: trunk/reactos/ntoskrnl/io/pnpmgr/plugplay.c
Modified: trunk/reactos/ntoskrnl/io/pnpmgr/plugplay.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/io/pnpmgr/plugplay... ============================================================================== --- trunk/reactos/ntoskrnl/io/pnpmgr/plugplay.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/io/pnpmgr/plugplay.c [iso-8859-1] Thu Feb 23 00:41:50 2012 @@ -552,6 +552,9 @@ /* Get the device node */ DeviceNode = IopGetDeviceNode(DeviceObject);
+ ASSERT(DeviceNode->Flags & DNF_ENUMERATED); + ASSERT(DeviceNode->Flags & DNF_PROCESSED); + #if 0 /* Remove the device node */ Status = IopRemoveDevice(DeviceNode); @@ -563,9 +566,7 @@ } #else /* FIXME: We might clear some important flags */ - ASSERT(DeviceNode->Flags & DNF_ENUMERATED); - ASSERT(DeviceNode->Flags & DNF_PROCESSED); - DeviceNode->Flags = DNF_ENUMERATED | DNF_PROCESSED; + DeviceNode->Flags &= ~DNF_DISABLED;
/* Load service data from the registry */ Status = IopActionConfigureChildServices(DeviceNode, DeviceNode->Parent);