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