mirror of
https://github.com/reactos/reactos.git
synced 2025-04-22 13:10:39 +00:00
[USBSTOR]
- Hackplement IRP_MJ_POWER support - Inspired by Thomas (Blame him ;)) svn path=/trunk/; revision=59084
This commit is contained in:
parent
41b3af8267
commit
c57a3c88a0
1 changed files with 17 additions and 5 deletions
|
@ -212,12 +212,24 @@ USBSTOR_DispatchPower(
|
||||||
PDEVICE_OBJECT DeviceObject,
|
PDEVICE_OBJECT DeviceObject,
|
||||||
PIRP Irp)
|
PIRP Irp)
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED
|
PFDO_DEVICE_EXTENSION DeviceExtension;
|
||||||
|
|
||||||
Irp->IoStatus.Information = 0;
|
// get common device extension
|
||||||
Irp->IoStatus.Status = STATUS_SUCCESS;
|
DeviceExtension = (PFDO_DEVICE_EXTENSION)DeviceObject->DeviceExtension;
|
||||||
IoCompleteRequest(Irp, IO_NO_INCREMENT);
|
|
||||||
return STATUS_SUCCESS;
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue