mirror of
https://github.com/reactos/reactos.git
synced 2024-12-26 17:14:41 +00:00
[NTOS:PO] Update a comment (#6443)
Addendum to 9e43518
(0.4.15-dev-7560).
This commit is contained in:
parent
9414fb6b59
commit
4b051b914f
1 changed files with 3 additions and 3 deletions
|
@ -4,7 +4,7 @@
|
||||||
* FILE: ntoskrnl/po/power.c
|
* FILE: ntoskrnl/po/power.c
|
||||||
* PURPOSE: Power Manager
|
* PURPOSE: Power Manager
|
||||||
* PROGRAMMERS: Casper S. Hornstrup (chorns@users.sourceforge.net)
|
* PROGRAMMERS: Casper S. Hornstrup (chorns@users.sourceforge.net)
|
||||||
* Herv<EFBFBD> Poussineau (hpoussin@reactos.com)
|
* Hervé Poussineau (hpoussin@reactos.com)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* INCLUDES ******************************************************************/
|
/* INCLUDES ******************************************************************/
|
||||||
|
@ -833,8 +833,8 @@ NtPowerInformation(IN POWER_INFORMATION_LEVEL PowerInformationLevel,
|
||||||
|
|
||||||
_SEH2_TRY
|
_SEH2_TRY
|
||||||
{
|
{
|
||||||
/* Just zero the struct (and thus set BatteryState->BatteryPresent = FALSE) */
|
/* Just zero the struct */
|
||||||
RtlZeroMemory(BatteryState, sizeof(SYSTEM_BATTERY_STATE));
|
RtlZeroMemory(BatteryState, sizeof(*BatteryState));
|
||||||
BatteryState->EstimatedTime = MAXULONG;
|
BatteryState->EstimatedTime = MAXULONG;
|
||||||
BatteryState->BatteryPresent = PopCapabilities.SystemBatteriesPresent;
|
BatteryState->BatteryPresent = PopCapabilities.SystemBatteriesPresent;
|
||||||
// BatteryState->AcOnLine = TRUE;
|
// BatteryState->AcOnLine = TRUE;
|
||||||
|
|
Loading…
Reference in a new issue