Commit 7797bc07 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

kernel32: Improve the GetSystemPowerStatus stub.

parent 75ba56f0
...@@ -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;
} }
/*********************************************************************** /***********************************************************************
......
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