Commit 7c5ea436 authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

include: Rename Reserved1 to SystemStatusFlag in SYSTEM_POWER_STATUS.

parent b7bca1be
...@@ -52,7 +52,7 @@ BOOL WINAPI GetSystemPowerStatus(LPSYSTEM_POWER_STATUS ps) ...@@ -52,7 +52,7 @@ BOOL WINAPI GetSystemPowerStatus(LPSYSTEM_POWER_STATUS ps)
ps->ACLineStatus = 255; ps->ACLineStatus = 255;
ps->BatteryFlag = 255; ps->BatteryFlag = 255;
ps->BatteryLifePercent = 255; ps->BatteryLifePercent = 255;
ps->Reserved1 = 0; ps->SystemStatusFlag = 0;
ps->BatteryLifeTime = ~0u; ps->BatteryLifeTime = ~0u;
ps->BatteryFullLifeTime = ~0u; ps->BatteryFullLifeTime = ~0u;
return TRUE; return TRUE;
......
...@@ -1755,9 +1755,9 @@ static void test_pack_SYSTEM_POWER_STATUS(void) ...@@ -1755,9 +1755,9 @@ static void test_pack_SYSTEM_POWER_STATUS(void)
TEST_FIELD_SIZE (SYSTEM_POWER_STATUS, BatteryLifePercent, 1) TEST_FIELD_SIZE (SYSTEM_POWER_STATUS, BatteryLifePercent, 1)
TEST_FIELD_ALIGN (SYSTEM_POWER_STATUS, BatteryLifePercent, 1) TEST_FIELD_ALIGN (SYSTEM_POWER_STATUS, BatteryLifePercent, 1)
TEST_FIELD_OFFSET(SYSTEM_POWER_STATUS, BatteryLifePercent, 2) TEST_FIELD_OFFSET(SYSTEM_POWER_STATUS, BatteryLifePercent, 2)
TEST_FIELD_SIZE (SYSTEM_POWER_STATUS, Reserved1, 1) TEST_FIELD_SIZE (SYSTEM_POWER_STATUS, SystemStatusFlag, 1)
TEST_FIELD_ALIGN (SYSTEM_POWER_STATUS, Reserved1, 1) TEST_FIELD_ALIGN (SYSTEM_POWER_STATUS, SystemStatusFlag, 1)
TEST_FIELD_OFFSET(SYSTEM_POWER_STATUS, Reserved1, 3) TEST_FIELD_OFFSET(SYSTEM_POWER_STATUS, SystemStatusFlag, 3)
TEST_FIELD_SIZE (SYSTEM_POWER_STATUS, BatteryLifeTime, 4) TEST_FIELD_SIZE (SYSTEM_POWER_STATUS, BatteryLifeTime, 4)
TEST_FIELD_ALIGN (SYSTEM_POWER_STATUS, BatteryLifeTime, 4) TEST_FIELD_ALIGN (SYSTEM_POWER_STATUS, BatteryLifeTime, 4)
TEST_FIELD_OFFSET(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) ...@@ -3612,9 +3612,9 @@ static void test_pack_SYSTEM_POWER_STATUS(void)
TEST_FIELD_SIZE (SYSTEM_POWER_STATUS, BatteryLifePercent, 1) TEST_FIELD_SIZE (SYSTEM_POWER_STATUS, BatteryLifePercent, 1)
TEST_FIELD_ALIGN (SYSTEM_POWER_STATUS, BatteryLifePercent, 1) TEST_FIELD_ALIGN (SYSTEM_POWER_STATUS, BatteryLifePercent, 1)
TEST_FIELD_OFFSET(SYSTEM_POWER_STATUS, BatteryLifePercent, 2) TEST_FIELD_OFFSET(SYSTEM_POWER_STATUS, BatteryLifePercent, 2)
TEST_FIELD_SIZE (SYSTEM_POWER_STATUS, Reserved1, 1) TEST_FIELD_SIZE (SYSTEM_POWER_STATUS, SystemStatusFlag, 1)
TEST_FIELD_ALIGN (SYSTEM_POWER_STATUS, Reserved1, 1) TEST_FIELD_ALIGN (SYSTEM_POWER_STATUS, SystemStatusFlag, 1)
TEST_FIELD_OFFSET(SYSTEM_POWER_STATUS, Reserved1, 3) TEST_FIELD_OFFSET(SYSTEM_POWER_STATUS, SystemStatusFlag, 3)
TEST_FIELD_SIZE (SYSTEM_POWER_STATUS, BatteryLifeTime, 4) TEST_FIELD_SIZE (SYSTEM_POWER_STATUS, BatteryLifeTime, 4)
TEST_FIELD_ALIGN (SYSTEM_POWER_STATUS, BatteryLifeTime, 4) TEST_FIELD_ALIGN (SYSTEM_POWER_STATUS, BatteryLifeTime, 4)
TEST_FIELD_OFFSET(SYSTEM_POWER_STATUS, BatteryLifeTime, 4) TEST_FIELD_OFFSET(SYSTEM_POWER_STATUS, BatteryLifeTime, 4)
......
...@@ -961,7 +961,7 @@ typedef struct _SYSTEM_POWER_STATUS ...@@ -961,7 +961,7 @@ typedef struct _SYSTEM_POWER_STATUS
BYTE ACLineStatus; BYTE ACLineStatus;
BYTE BatteryFlag; BYTE BatteryFlag;
BYTE BatteryLifePercent; BYTE BatteryLifePercent;
BYTE Reserved1; BYTE SystemStatusFlag;
DWORD BatteryLifeTime; DWORD BatteryLifeTime;
DWORD BatteryFullLifeTime; DWORD BatteryFullLifeTime;
} SYSTEM_POWER_STATUS, *LPSYSTEM_POWER_STATUS; } SYSTEM_POWER_STATUS, *LPSYSTEM_POWER_STATUS;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment