From cfe54aa4b50d6aa6ed82ec6d06f5beddbac9667e Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Sat, 20 Apr 2019 23:26:57 +0200 Subject: [PATCH] [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 1ddf14741e1..121a41cdda3 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; }