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

commit f71588ff7a239a6a21577ffe24e6f8a9696c4357
Author:     Eric Kohl <[email protected]>
AuthorDate: Tue Apr 16 20:14:36 2019 +0200
Commit:     Eric Kohl <[email protected]>
CommitDate: Tue Apr 16 20:41:21 2019 +0200

    [NTOSKRNL] NtPowerInformation: Report an AC powered machine by default.
---
 ntoskrnl/po/power.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

Reply via email to