[SERIAL]
authorThomas Faber <thomas.faber@reactos.org>
Wed, 20 Jul 2016 12:50:58 +0000 (12:50 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Wed, 20 Jul 2016 12:50:58 +0000 (12:50 +0000)
- Properly stub SerialPower
CORE-11648

svn path=/trunk/; revision=71974

reactos/drivers/serial/serial/power.c

index 1043a75..3bd0b5f 100644 (file)
@@ -16,9 +16,12 @@ SerialPower(
        IN PDEVICE_OBJECT DeviceObject,
        IN PIRP Irp)
 {
+       PSERIAL_DEVICE_EXTENSION DeviceExtension;
+
        TRACE_(SERIAL, "IRP_MJ_POWER dispatch\n");
-       Irp->IoStatus.Information = 0;
-       Irp->IoStatus.Status = STATUS_SUCCESS;
-       IoCompleteRequest(Irp, IO_NO_INCREMENT);
-       return STATUS_SUCCESS;
+
+       DeviceExtension = DeviceObject->DeviceExtension;
+       PoStartNextPowerIrp(Irp);
+       IoSkipCurrentIrpStackLocation(Irp);
+       return PoCallDriver(DeviceExtension->LowerDevice, Irp);
 }