From f71588ff7a239a6a21577ffe24e6f8a9696c4357 Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Tue, 16 Apr 2019 20:14:36 +0200 Subject: [PATCH] [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 f249d0eb1a8..1ddf14741e1 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; } -- 2.17.1