mirror of
https://github.com/reactos/reactos.git
synced 2026-05-24 00:00:41 +08:00
[NTOSKRNL] NtPowerInformation: Report an AC powered machine by default.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user