mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[ISAPNP] Properly stub IRP_MJ_POWER
This commit is contained in:
parent
c2b65c3fea
commit
9df05ba4b6
1 changed files with 23 additions and 0 deletions
|
@ -807,6 +807,28 @@ IsaAddDevice(
|
|||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
DRIVER_DISPATCH IsaPower;
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
IsaPower(
|
||||
IN PDEVICE_OBJECT DeviceObject,
|
||||
IN PIRP Irp)
|
||||
{
|
||||
PISAPNP_COMMON_EXTENSION DevExt = DeviceObject->DeviceExtension;
|
||||
NTSTATUS Status;
|
||||
|
||||
if (!DevExt->IsFdo)
|
||||
{
|
||||
Status = Irp->IoStatus.Status;
|
||||
IoCompleteRequest(Irp, IO_NO_INCREMENT);
|
||||
return Status;
|
||||
}
|
||||
|
||||
PoStartNextPowerIrp(Irp);
|
||||
IoSkipCurrentIrpStackLocation(Irp);
|
||||
return PoCallDriver(((PISAPNP_FDO_EXTENSION)DevExt)->Ldo, Irp);
|
||||
}
|
||||
|
||||
static DRIVER_DISPATCH IsaPnp;
|
||||
|
||||
static
|
||||
|
@ -849,6 +871,7 @@ DriverEntry(
|
|||
DriverObject->MajorFunction[IRP_MJ_WRITE] = IsaReadWrite;
|
||||
DriverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL] = IsaIoctl;
|
||||
DriverObject->MajorFunction[IRP_MJ_PNP] = IsaPnp;
|
||||
DriverObject->MajorFunction[IRP_MJ_POWER] = IsaPower;
|
||||
DriverObject->DriverExtension->AddDevice = IsaAddDevice;
|
||||
|
||||
return STATUS_SUCCESS;
|
||||
|
|
Loading…
Reference in a new issue