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

commit cfe54aa4b50d6aa6ed82ec6d06f5beddbac9667e
Author:     Eric Kohl <[email protected]>
AuthorDate: Sat Apr 20 23:26:57 2019 +0200
Commit:     Eric Kohl <[email protected]>
CommitDate: Sat Apr 20 23:26:57 2019 +0200

    [NTOSKRNL] Revert f71588ff as it seems to break the tests
---
 ntoskrnl/po/power.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ntoskrnl/po/power.c b/ntoskrnl/po/power.c
index 1ddf14741e..121a41cdda 100644
--- a/ntoskrnl/po/power.c
+++ b/ntoskrnl/po/power.c
@@ -703,7 +703,8 @@ NtPowerInformation(IN POWER_INFORMATION_LEVEL 
PowerInformationLevel,
             {
                 /* Just zero the struct (and thus set 
BatteryState->BatteryPresent = FALSE) */
                 RtlZeroMemory(BatteryState, sizeof(SYSTEM_BATTERY_STATE));
-                BatteryState->AcOnLine = TRUE;
+                BatteryState->EstimatedTime = MAXULONG;
+//                BatteryState->AcOnLine = TRUE;
 
                 Status = STATUS_SUCCESS;
             }

Reply via email to