[ros-diffs] [cgutman] 53379: [PNPMGR] - Print an debug message if IRP_MN_FILTER_RESOURCE_REQUIREMENTS fails - Don't let a broken driver remove our resource requirements list

cgutman at svn.reactos.org cgutman at svn.reactos.org
Mon Aug 22 17:01:33 UTC 2011


Author: cgutman
Date: Mon Aug 22 17:01:33 2011
New Revision: 53379

URL: http://svn.reactos.org/svn/reactos?rev=53379&view=rev
Log:
[PNPMGR]
- Print an debug message if IRP_MN_FILTER_RESOURCE_REQUIREMENTS fails
- Don't let a broken driver remove our resource requirements list

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

Modified: trunk/reactos/ntoskrnl/io/pnpmgr/pnpres.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/io/pnpmgr/pnpres.c?rev=53379&r1=53378&r2=53379&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/io/pnpmgr/pnpres.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/io/pnpmgr/pnpres.c [iso-8859-1] Mon Aug 22 17:01:33 2011
@@ -547,10 +547,10 @@
       &Stack);
    if (!NT_SUCCESS(Status) && Status != STATUS_NOT_SUPPORTED)
    {
-      DPRINT("IopInitiatePnpIrp(IRP_MN_FILTER_RESOURCE_REQUIREMENTS) failed\n");
+      DPRINT1("IopInitiatePnpIrp(IRP_MN_FILTER_RESOURCE_REQUIREMENTS) failed\n");
       return Status;
    }
-   else if (NT_SUCCESS(Status))
+   else if (NT_SUCCESS(Status) && IoStatusBlock.Information)
    {
       DeviceNode->ResourceRequirements = (PIO_RESOURCE_REQUIREMENTS_LIST)IoStatusBlock.Information;
    }




More information about the Ros-diffs mailing list