[ros-diffs] [tkreuzer] 48312: [BATTC] Fix a warning

tkreuzer at svn.reactos.org tkreuzer at svn.reactos.org
Tue Jul 27 16:09:16 UTC 2010


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/battc.c?rev=48312&r1=48311&r2=48312&view=diff
==============================================================================
--- 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;




More information about the Ros-diffs mailing list