mirror of
https://github.com/reactos/reactos.git
synced 2024-07-28 23:29:19 +00:00
[BATTC]
Fix a warning svn path=/trunk/; revision=48312
This commit is contained in:
parent
eba4c7f302
commit
59b1059723
|
@ -186,6 +186,7 @@ BatteryClassIoctl(PVOID ClassData,
|
||||||
LARGE_INTEGER Timeout;
|
LARGE_INTEGER Timeout;
|
||||||
PBATTERY_STATUS BattStatus;
|
PBATTERY_STATUS BattStatus;
|
||||||
BATTERY_NOTIFY BattNotify;
|
BATTERY_NOTIFY BattNotify;
|
||||||
|
ULONG ReturnedLength;
|
||||||
|
|
||||||
Irp->IoStatus.Information = 0;
|
Irp->IoStatus.Information = 0;
|
||||||
|
|
||||||
|
@ -322,7 +323,8 @@ BatteryClassIoctl(PVOID ClassData,
|
||||||
BattQueryInfo->AtRate,
|
BattQueryInfo->AtRate,
|
||||||
Irp->AssociatedIrp.SystemBuffer,
|
Irp->AssociatedIrp.SystemBuffer,
|
||||||
IrpSp->Parameters.DeviceIoControl.OutputBufferLength,
|
IrpSp->Parameters.DeviceIoControl.OutputBufferLength,
|
||||||
&Irp->IoStatus.Information);
|
&ReturnedLength);
|
||||||
|
Irp->IoStatus.Information = ReturnedLength;
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
DPRINT1("QueryInformation failed (0x%x)\n", Status);
|
DPRINT1("QueryInformation failed (0x%x)\n", Status);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue