Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
7c5ea436
Commit
7c5ea436
authored
Sep 22, 2019
by
Alex Henrie
Committed by
Alexandre Julliard
Sep 23, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
>
parent
b7bca1be
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
powermgnt.c
dlls/kernel32/powermgnt.c
+1
-1
generated.c
dlls/kernel32/tests/generated.c
+6
-6
winbase.h
include/winbase.h
+1
-1
No files found.
dlls/kernel32/powermgnt.c
View file @
7c5ea436
...
@@ -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
;
...
...
dlls/kernel32/tests/generated.c
View file @
7c5ea436
...
@@ -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
)
...
...
include/winbase.h
View file @
7c5ea436
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment