Author: cgutman
Date: Mon Mar 22 02:41:17 2010
New Revision: 46332
URL:
http://svn.reactos.org/svn/reactos?rev=46332&view=rev
Log:
[CMBATT]
- Implement CmBattIoctl
Modified:
trunk/reactos/drivers/bus/acpi/cmbatt/cmbatt.c
Modified: trunk/reactos/drivers/bus/acpi/cmbatt/cmbatt.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/acpi/cmbatt/cm…
==============================================================================
--- trunk/reactos/drivers/bus/acpi/cmbatt/cmbatt.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/bus/acpi/cmbatt/cmbatt.c [iso-8859-1] Mon Mar 22 02:41:17 2010
@@ -351,8 +351,21 @@
CmBattIoctl(PDEVICE_OBJECT DeviceObject,
PIRP Irp)
{
- UNIMPLEMENTED;
- return STATUS_NOT_IMPLEMENTED;
+ PCMBATT_DEVICE_EXTENSION DeviceExtension = DeviceObject->DeviceExtension;
+ NTSTATUS Status;
+
+ Status = BatteryClassIoctl(DeviceExtension->ClassData,
+ Irp);
+
+ if (Status == STATUS_NOT_SUPPORTED)
+ {
+ Irp->IoStatus.Status = Status;
+ Irp->IoStatus.Information = 0;
+
+ IoCompleteRequest(Irp, IO_NO_INCREMENT);
+ }
+
+ return Status;
}
NTSTATUS