[NTOSKRNL] Revert f71588ff as it seems to break the tests
authorEric Kohl <eric.kohl@reactos.org>
Sat, 20 Apr 2019 21:26:57 +0000 (23:26 +0200)
committerEric Kohl <eric.kohl@reactos.org>
Sat, 20 Apr 2019 21:26:57 +0000 (23:26 +0200)
ntoskrnl/po/power.c

index 1ddf147..121a41c 100644 (file)
@@ -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;
             }