Author: tkreuzer
Date: Tue Jul 27 16:09:15 2010
New Revision: 48312
URL:
http://svn.reactos.org/svn/reactos?rev=48312&view=rev
Log:
[BATTC]
Fix a warning
Modified:
trunk/reactos/drivers/battery/battc/battc.c
Modified: trunk/reactos/drivers/battery/battc/battc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/battery/battc/batt…
==============================================================================
--- trunk/reactos/drivers/battery/battc/battc.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/battery/battc/battc.c [iso-8859-1] Tue Jul 27 16:09:15 2010
@@ -186,6 +186,7 @@
LARGE_INTEGER Timeout;
PBATTERY_STATUS BattStatus;
BATTERY_NOTIFY BattNotify;
+ ULONG ReturnedLength;
Irp->IoStatus.Information = 0;
@@ -322,7 +323,8 @@
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;