Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
7797bc07
Commit
7797bc07
authored
May 28, 2009
by
Hans Leidekker
Committed by
Alexandre Julliard
May 28, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Improve the GetSystemPowerStatus stub.
parent
75ba56f0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
powermgnt.c
dlls/kernel32/powermgnt.c
+14
-3
No files found.
dlls/kernel32/powermgnt.c
View file @
7797bc07
...
@@ -37,10 +37,21 @@ BOOL WINAPI GetDevicePowerState(HANDLE hDevice, BOOL* pfOn)
...
@@ -37,10 +37,21 @@ BOOL WINAPI GetDevicePowerState(HANDLE hDevice, BOOL* pfOn)
/***********************************************************************
/***********************************************************************
* GetSystemPowerStatus (KERNEL32.@)
* GetSystemPowerStatus (KERNEL32.@)
*/
*/
BOOL
WINAPI
GetSystemPowerStatus
(
LPSYSTEM_POWER_STATUS
sps_ptr
)
BOOL
WINAPI
GetSystemPowerStatus
(
LPSYSTEM_POWER_STATUS
ps
)
{
{
WARN
(
"(): stub, harmless.
\n
"
);
WARN
(
"(%p): stub, harmless.
\n
"
,
ps
);
return
FALSE
;
/* no power management support */
if
(
ps
)
{
ps
->
ACLineStatus
=
255
;
ps
->
BatteryFlag
=
255
;
ps
->
BatteryLifePercent
=
255
;
ps
->
Reserved1
=
0
;
ps
->
BatteryLifeTime
=
~
0u
;
ps
->
BatteryFullLifeTime
=
~
0u
;
return
TRUE
;
}
return
FALSE
;
}
}
/***********************************************************************
/***********************************************************************
...
...
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