[BATTC] Fixed an oops!
authorEric Kohl <eric.kohl@reactos.org>
Tue, 1 Jan 2019 12:48:43 +0000 (13:48 +0100)
committerEric Kohl <eric.kohl@reactos.org>
Tue, 1 Jan 2019 12:48:43 +0000 (13:48 +0100)
drivers/battery/battc/battc.c

index 22664d4..d07db5f 100644 (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: