[USBSTOR]

- Hackplement IRP_MJ_POWER support
- Inspired by Thomas (Blame him ;))

svn path=/trunk/; revision=59084
This commit is contained in:
Johannes Anderwald 2013-05-26 17:18:19 +00:00
parent 41b3af8267
commit c57a3c88a0

View file

@ -212,12 +212,24 @@ USBSTOR_DispatchPower(
PDEVICE_OBJECT DeviceObject,
PIRP Irp)
{
UNIMPLEMENTED
PFDO_DEVICE_EXTENSION DeviceExtension;
Irp->IoStatus.Information = 0;
// get common device extension
DeviceExtension = (PFDO_DEVICE_EXTENSION)DeviceObject->DeviceExtension;
if (DeviceExtension->Common.IsFDO)
{
PoStartNextPowerIrp(Irp);
IoSkipCurrentIrpStackLocation(Irp);
return PoCallDriver(DeviceExtension->LowerDeviceObject, Irp);
}
else
{
PoStartNextPowerIrp(Irp);
Irp->IoStatus.Status = STATUS_SUCCESS;
IoCompleteRequest(Irp, IO_NO_INCREMENT);
return STATUS_SUCCESS;
}
}