mirror of
https://github.com/reactos/reactos.git
synced 2025-05-06 10:28:45 +00:00
[POWERPROF] ValidatePowerPolicies: Do not fail because of legal power states which were set by FixSystemPowerState.
This commit is contained in:
parent
7033ab18df
commit
5164c852e8
1 changed files with 6 additions and 6 deletions
|
@ -874,7 +874,7 @@ ValidatePowerPolicies(PGLOBAL_POWER_POLICY pGPP, PPOWER_POLICY pPP)
|
|||
SetLastError(ERROR_GEN_FAILURE);
|
||||
return FALSE;
|
||||
}
|
||||
if ((int)pGPP->mach.LidOpenWakeAc >= PowerSystemShutdown)
|
||||
if ((int)pGPP->mach.LidOpenWakeAc > PowerSystemShutdown)
|
||||
{
|
||||
SetLastError(ERROR_GEN_FAILURE);
|
||||
return FALSE;
|
||||
|
@ -884,7 +884,7 @@ ValidatePowerPolicies(PGLOBAL_POWER_POLICY pGPP, PPOWER_POLICY pPP)
|
|||
SetLastError(ERROR_GEN_FAILURE);
|
||||
return FALSE;
|
||||
}
|
||||
if ((int)pGPP->mach.LidOpenWakeDc >= PowerSystemShutdown)
|
||||
if ((int)pGPP->mach.LidOpenWakeDc > PowerSystemShutdown)
|
||||
{
|
||||
SetLastError(ERROR_GEN_FAILURE);
|
||||
return FALSE;
|
||||
|
@ -963,22 +963,22 @@ ValidatePowerPolicies(PGLOBAL_POWER_POLICY pGPP, PPOWER_POLICY pPP)
|
|||
SetLastError(ERROR_GEN_FAILURE);
|
||||
return FALSE;
|
||||
}
|
||||
if (pPP->mach.ReducedLatencySleepAc == PowerSystemUnspecified)
|
||||
if ((int)pPP->mach.ReducedLatencySleepAc == PowerSystemUnspecified)
|
||||
{
|
||||
SetLastError(ERROR_GEN_FAILURE);
|
||||
return FALSE;
|
||||
}
|
||||
if ((int)pPP->mach.ReducedLatencySleepAc >= PowerSystemShutdown)
|
||||
if ((int)pPP->mach.ReducedLatencySleepAc > PowerSystemShutdown)
|
||||
{
|
||||
SetLastError(ERROR_GEN_FAILURE);
|
||||
return FALSE;
|
||||
}
|
||||
if (pPP->mach.ReducedLatencySleepDc < PowerSystemWorking)
|
||||
if ((int)pPP->mach.ReducedLatencySleepDc < PowerSystemWorking)
|
||||
{
|
||||
SetLastError(ERROR_GEN_FAILURE);
|
||||
return FALSE;
|
||||
}
|
||||
if ((int)pPP->mach.ReducedLatencySleepDc >= PowerSystemShutdown)
|
||||
if ((int)pPP->mach.ReducedLatencySleepDc > PowerSystemShutdown)
|
||||
{
|
||||
SetLastError(ERROR_GEN_FAILURE);
|
||||
return FALSE;
|
||||
|
|
Loading…
Reference in a new issue