[ros-diffs] [cgutman] 46533: [NTOSKRNL] - Fix a nasty bug that discarded any response to IRP_MN_FILTER_RESOURCE_REQUIREMENTS so drivers never got the resources they needed

cgutman at svn.reactos.org cgutman at svn.reactos.org
Mon Mar 29 00:59:38 CEST 2010


Author: cgutman
Date: Mon Mar 29 00:59:38 2010
New Revision: 46533

URL: http://svn.reactos.org/svn/reactos?rev=46533&view=rev
Log:
[NTOSKRNL]
- Fix a nasty bug that discarded any response to IRP_MN_FILTER_RESOURCE_REQUIREMENTS so drivers never got the resources they needed

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?rev=46533&r1=46532&r2=46533&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c [iso-8859-1] Mon Mar 29 00:59:38 2010
@@ -150,7 +150,7 @@
       DPRINT("IopInitiatePnpIrp(IRP_MN_FILTER_RESOURCE_REQUIREMENTS) failed\n");
       return Status;
    }
-   DeviceNode->ResourceRequirements = Stack.Parameters.FilterResourceRequirements.IoResourceRequirementList;
+   DeviceNode->ResourceRequirements = (PIO_RESOURCE_REQUIREMENTS_LIST)IoStatusBlock.Information;
 
    Status = IopAssignDeviceResources(DeviceNode, &RequiredLength);
    if (NT_SUCCESS(Status))




More information about the Ros-diffs mailing list