include: Rename Reserved1 to SystemStatusFlag in SYSTEM_POWER_STATUS.

Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alex Henrie 2019-09-22 15:12:09 -06:00 committed by Alexandre Julliard
parent b7bca1be24
commit 7c5ea436af
3 changed files with 8 additions and 8 deletions

View File

@ -52,7 +52,7 @@ BOOL WINAPI GetSystemPowerStatus(LPSYSTEM_POWER_STATUS ps)
ps->ACLineStatus = 255;
ps->BatteryFlag = 255;
ps->BatteryLifePercent = 255;
ps->Reserved1 = 0;
ps->SystemStatusFlag = 0;
ps->BatteryLifeTime = ~0u;
ps->BatteryFullLifeTime = ~0u;
return TRUE;

View File

@ -1755,9 +1755,9 @@ static void test_pack_SYSTEM_POWER_STATUS(void)
TEST_FIELD_SIZE (SYSTEM_POWER_STATUS, BatteryLifePercent, 1)
TEST_FIELD_ALIGN (SYSTEM_POWER_STATUS, BatteryLifePercent, 1)
TEST_FIELD_OFFSET(SYSTEM_POWER_STATUS, BatteryLifePercent, 2)
TEST_FIELD_SIZE (SYSTEM_POWER_STATUS, Reserved1, 1)
TEST_FIELD_ALIGN (SYSTEM_POWER_STATUS, Reserved1, 1)
TEST_FIELD_OFFSET(SYSTEM_POWER_STATUS, Reserved1, 3)
TEST_FIELD_SIZE (SYSTEM_POWER_STATUS, SystemStatusFlag, 1)
TEST_FIELD_ALIGN (SYSTEM_POWER_STATUS, SystemStatusFlag, 1)
TEST_FIELD_OFFSET(SYSTEM_POWER_STATUS, SystemStatusFlag, 3)
TEST_FIELD_SIZE (SYSTEM_POWER_STATUS, BatteryLifeTime, 4)
TEST_FIELD_ALIGN (SYSTEM_POWER_STATUS, BatteryLifeTime, 4)
TEST_FIELD_OFFSET(SYSTEM_POWER_STATUS, BatteryLifeTime, 4)
@ -3612,9 +3612,9 @@ static void test_pack_SYSTEM_POWER_STATUS(void)
TEST_FIELD_SIZE (SYSTEM_POWER_STATUS, BatteryLifePercent, 1)
TEST_FIELD_ALIGN (SYSTEM_POWER_STATUS, BatteryLifePercent, 1)
TEST_FIELD_OFFSET(SYSTEM_POWER_STATUS, BatteryLifePercent, 2)
TEST_FIELD_SIZE (SYSTEM_POWER_STATUS, Reserved1, 1)
TEST_FIELD_ALIGN (SYSTEM_POWER_STATUS, Reserved1, 1)
TEST_FIELD_OFFSET(SYSTEM_POWER_STATUS, Reserved1, 3)
TEST_FIELD_SIZE (SYSTEM_POWER_STATUS, SystemStatusFlag, 1)
TEST_FIELD_ALIGN (SYSTEM_POWER_STATUS, SystemStatusFlag, 1)
TEST_FIELD_OFFSET(SYSTEM_POWER_STATUS, SystemStatusFlag, 3)
TEST_FIELD_SIZE (SYSTEM_POWER_STATUS, BatteryLifeTime, 4)
TEST_FIELD_ALIGN (SYSTEM_POWER_STATUS, BatteryLifeTime, 4)
TEST_FIELD_OFFSET(SYSTEM_POWER_STATUS, BatteryLifeTime, 4)

View File

@ -961,7 +961,7 @@ typedef struct _SYSTEM_POWER_STATUS
BYTE ACLineStatus;
BYTE BatteryFlag;
BYTE BatteryLifePercent;
BYTE Reserved1;
BYTE SystemStatusFlag;
DWORD BatteryLifeTime;
DWORD BatteryFullLifeTime;
} SYSTEM_POWER_STATUS, *LPSYSTEM_POWER_STATUS;