[ros-diffs] [janderwald] 40914: - IRP_MN_FILTER_RESOURCE_REQUIREMENTS passes the list also in Irp->IoStatus.Information - Fixes a crash in CMI8738 driver

janderwald at svn.reactos.org janderwald at svn.reactos.org
Wed May 13 22:15:47 CEST 2009


Author: janderwald
Date: Thu May 14 00:15:46 2009
New Revision: 40914

URL: http://svn.reactos.org/svn/reactos?rev=40914&view=rev
Log:
- IRP_MN_FILTER_RESOURCE_REQUIREMENTS passes the list also in Irp->IoStatus.Information
- Fixes a crash in CMI8738 driver

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=40914&r1=40913&r2=40914&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/io/pnpmgr/pnpmgr.c [iso-8859-1] Thu May 14 00:15:46 2009
@@ -514,6 +514,11 @@
    /* PNP IRPs are initialized with a status code of STATUS_NOT_SUPPORTED */
    Irp->IoStatus.Status = STATUS_NOT_SUPPORTED;
    Irp->IoStatus.Information = 0;
+
+   if (MinorFunction == IRP_MN_FILTER_RESOURCE_REQUIREMENTS)
+   {
+      Irp->IoStatus.Information = (ULONG_PTR)Stack->Parameters.FilterResourceRequirements.IoResourceRequirementList;
+   }
 
    IrpSp = IoGetNextIrpStackLocation(Irp);
    IrpSp->MinorFunction = (UCHAR)MinorFunction;



More information about the Ros-diffs mailing list