[NTOSKRNL] NtPowerInformation: Report an AC powered machine by default.

This commit is contained in:
Eric Kohl 2019-04-16 20:14:36 +02:00
parent 98972036d9
commit f71588ff7a

View file

@ -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;
}