https://git.reactos.org/?p=reactos.git;a=commitdiff;h=4b051b914f046eba9f280e648de52b216d0354fe

commit 4b051b914f046eba9f280e648de52b216d0354fe
Author:     Serge Gautherie <[email protected]>
AuthorDate: Sun Sep 8 02:29:37 2024 +0200
Commit:     GitHub <[email protected]>
CommitDate: Sun Sep 8 02:29:37 2024 +0200

    [NTOS:PO] Update a comment (#6443)
    
    Addendum to 9e43518 (0.4.15-dev-7560).
---
 ntoskrnl/po/power.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/ntoskrnl/po/power.c b/ntoskrnl/po/power.c
index 8a6df8a4195..c2f998e7688 100644
--- a/ntoskrnl/po/power.c
+++ b/ntoskrnl/po/power.c
@@ -4,7 +4,7 @@
  * FILE:            ntoskrnl/po/power.c
  * PURPOSE:         Power Manager
  * PROGRAMMERS:     Casper S. Hornstrup ([email protected])
- *                  Herv� Poussineau ([email protected])
+ *                  Hervé Poussineau ([email protected])
  */
 
 /* INCLUDES ******************************************************************/
@@ -833,8 +833,8 @@ NtPowerInformation(IN POWER_INFORMATION_LEVEL 
PowerInformationLevel,
 
             _SEH2_TRY
             {
-                /* Just zero the struct (and thus set 
BatteryState->BatteryPresent = FALSE) */
-                RtlZeroMemory(BatteryState, sizeof(SYSTEM_BATTERY_STATE));
+                /* Just zero the struct */
+                RtlZeroMemory(BatteryState, sizeof(*BatteryState));
                 BatteryState->EstimatedTime = MAXULONG;
                 BatteryState->BatteryPresent = 
PopCapabilities.SystemBatteriesPresent;
 //                BatteryState->AcOnLine = TRUE;

Reply via email to