From dcf715c76bb5a367bb5a5b5c9ee1e8d075f5769f Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Tue, 26 Nov 2013 15:00:06 +0000 Subject: [PATCH] [POWRPROF] - Fix a warning svn path=/trunk/; revision=61100 --- reactos/dll/win32/powrprof/powrprof.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/dll/win32/powrprof/powrprof.c b/reactos/dll/win32/powrprof/powrprof.c index b52a5e56631..8feff109ab2 100644 --- a/reactos/dll/win32/powrprof/powrprof.c +++ b/reactos/dll/win32/powrprof/powrprof.c @@ -920,8 +920,8 @@ ValidatePowerPolicies(PGLOBAL_POWER_POLICY pGPP, PPOWER_POLICY pPP) return FALSE; } //Lohnegrim: The BroadcastCapacityResolution presents the Powerlevel in Percent, if invalid set th 100 == FULL - if ((pGPP->mach.BroadcastCapacityResolution < 0) || (pGPP->mach.BroadcastCapacityResolution > 100)) - pGPP->mach.BroadcastCapacityResolution=100; + if (pGPP->mach.BroadcastCapacityResolution > 100) + pGPP->mach.BroadcastCapacityResolution = 100; //Lohnegrim: I have no idear, if they are realy needed, or if they are spezific for my System, or what they mean, so i removed them //pGPP->user.DischargePolicy[1].PowerPolicy.EventCode = pGPP->user.DischargePolicy[1].PowerPolicy.EventCode | 0x010000;