mirror of
https://github.com/reactos/reactos.git
synced 2025-06-12 08:28:32 +00:00
[NTOS:WMI][HAL]
- Properly stub WmipShutdown and HalpDispatchPower to avoid IRP leaks CORE-10105 svn path=/trunk/; revision=69013
This commit is contained in:
parent
8701931bfa
commit
8751ae5a8b
1 changed files with 16 additions and 1 deletions
|
@ -820,8 +820,23 @@ NTAPI
|
||||||
HalpDispatchPower(IN PDEVICE_OBJECT DeviceObject,
|
HalpDispatchPower(IN PDEVICE_OBJECT DeviceObject,
|
||||||
IN PIRP Irp)
|
IN PIRP Irp)
|
||||||
{
|
{
|
||||||
|
PFDO_EXTENSION FdoExtension;
|
||||||
|
|
||||||
DPRINT1("HAL: PnP Driver Power!\n");
|
DPRINT1("HAL: PnP Driver Power!\n");
|
||||||
return STATUS_SUCCESS;
|
FdoExtension = DeviceObject->DeviceExtension;
|
||||||
|
if (FdoExtension->ExtensionType == FdoExtensionType)
|
||||||
|
{
|
||||||
|
PoStartNextPowerIrp(Irp);
|
||||||
|
IoSkipCurrentIrpStackLocation(Irp);
|
||||||
|
return PoCallDriver(FdoExtension->AttachedDeviceObject, Irp);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
PoStartNextPowerIrp(Irp);
|
||||||
|
Irp->IoStatus.Status = STATUS_SUCCESS;
|
||||||
|
IoCompleteRequest(Irp, IO_NO_INCREMENT);
|
||||||
|
return STATUS_SUCCESS;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue