Author: tfaber
Date: Tue Nov 26 15:00:06 2013
New Revision: 61100

URL: http://svn.reactos.org/svn/reactos?rev=61100&view=rev
Log:
[POWRPROF]
- Fix a warning

Modified:
    trunk/reactos/dll/win32/powrprof/powrprof.c

Modified: trunk/reactos/dll/win32/powrprof/powrprof.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/powrprof/powrprof.c?rev=61100&r1=61099&r2=61100&view=diff
==============================================================================
--- trunk/reactos/dll/win32/powrprof/powrprof.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/powrprof/powrprof.c [iso-8859-1] Tue Nov 26 
15:00:06 2013
@@ -920,8 +920,8 @@
             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;


Reply via email to