[BATTC] Fixed an oops!

This commit is contained in:
Eric Kohl 2019-01-01 13:48:43 +01:00
parent 397fa2844e
commit 34b0516ec4

View file

@ -201,13 +201,16 @@ BatteryClassIoctl(PVOID ClassData,
BATTERY_NOTIFY BattNotify;
ULONG ReturnedLength;
DPRINT("Received IOCTL %x for %p\n", IrpSp->Parameters.DeviceIoControl.IoControlCode,
ClassData);
DPRINT("BatteryClassIoctl(%p %p)\n", ClassData, Irp);
BattClass = ClassData;
IrpSp = IoGetCurrentIrpStackLocation(Irp);
Irp->IoStatus.Information = 0;
DPRINT("Received IOCTL %x for %p\n", IrpSp->Parameters.DeviceIoControl.IoControlCode,
ClassData);
switch (IrpSp->Parameters.DeviceIoControl.IoControlCode)
{
case IOCTL_BATTERY_QUERY_TAG: