mirror of
https://github.com/reactos/reactos.git
synced 2025-04-27 00:50:23 +00:00
[BATTC] Fixed an oops!
This commit is contained in:
parent
397fa2844e
commit
34b0516ec4
1 changed files with 5 additions and 2 deletions
|
@ -201,13 +201,16 @@ BatteryClassIoctl(PVOID ClassData,
|
||||||
BATTERY_NOTIFY BattNotify;
|
BATTERY_NOTIFY BattNotify;
|
||||||
ULONG ReturnedLength;
|
ULONG ReturnedLength;
|
||||||
|
|
||||||
DPRINT("Received IOCTL %x for %p\n", IrpSp->Parameters.DeviceIoControl.IoControlCode,
|
DPRINT("BatteryClassIoctl(%p %p)\n", ClassData, Irp);
|
||||||
ClassData);
|
|
||||||
|
|
||||||
BattClass = ClassData;
|
BattClass = ClassData;
|
||||||
|
|
||||||
IrpSp = IoGetCurrentIrpStackLocation(Irp);
|
IrpSp = IoGetCurrentIrpStackLocation(Irp);
|
||||||
Irp->IoStatus.Information = 0;
|
Irp->IoStatus.Information = 0;
|
||||||
|
|
||||||
|
DPRINT("Received IOCTL %x for %p\n", IrpSp->Parameters.DeviceIoControl.IoControlCode,
|
||||||
|
ClassData);
|
||||||
|
|
||||||
switch (IrpSp->Parameters.DeviceIoControl.IoControlCode)
|
switch (IrpSp->Parameters.DeviceIoControl.IoControlCode)
|
||||||
{
|
{
|
||||||
case IOCTL_BATTERY_QUERY_TAG:
|
case IOCTL_BATTERY_QUERY_TAG:
|
||||||
|
|
Loading…
Reference in a new issue