Author: cgutman Date: Fri May 27 02:11:05 2011 New Revision: 51946
URL: http://svn.reactos.org/svn/reactos?rev=51946&view=rev Log: [NTOSKRNL] - Quick fix for the crash loading boot-time legacy drivers - More device node flag state fixes coming soon
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... ============================================================================== --- trunk/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c [iso-8859-1] Fri May 27 02:11:05 2011 @@ -327,6 +327,12 @@ HANDLE InstanceHandle = INVALID_HANDLE_VALUE, ControlHandle = INVALID_HANDLE_VALUE; UNICODE_STRING KeyName; OBJECT_ATTRIBUTES ObjectAttributes; + + if (((DeviceNode->Flags & DNF_STARTED) && !(DeviceNode->Flags & DNF_HAS_PROBLEM)) || + (DeviceNode->Flags & DNF_START_REQUEST_PENDING)) + { + return STATUS_SUCCESS; + }
Status = IopAssignDeviceResources(DeviceNode); if (!NT_SUCCESS(Status))