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... ============================================================================== --- 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;