[KERNEL32] GetSystemPowerStatus(): Fix coding style. No code changes!
authorEric Kohl <eric.kohl@reactos.org>
Fri, 19 Apr 2019 20:28:11 +0000 (22:28 +0200)
committerEric Kohl <eric.kohl@reactos.org>
Fri, 19 Apr 2019 20:28:11 +0000 (22:28 +0200)
dll/win32/kernel32/client/power.c

index 542e4f7..e25d25a 100644 (file)
@@ -35,7 +35,6 @@ GetSystemPowerStatus(IN LPSYSTEM_POWER_STATUS PowerStatus)
                                 0,
                                 &BattState,
                                 sizeof(SYSTEM_BATTERY_STATE));
-
     if (!NT_SUCCESS(Status))
     {
         BaseSetLastNTError(Status);
@@ -62,17 +61,24 @@ GetSystemPowerStatus(IN LPSYSTEM_POWER_STATUS PowerStatus)
             PowerStatus->BatteryLifePercent = 100;
         }
 
-        if (PowerStatus->BatteryLifePercent <= 32) PowerStatus->BatteryFlag |= BATTERY_FLAG_LOW;
-        if (PowerStatus->BatteryLifePercent >= 67) PowerStatus->BatteryFlag |= BATTERY_FLAG_HIGH;
+        if (PowerStatus->BatteryLifePercent <= 32)
+            PowerStatus->BatteryFlag |= BATTERY_FLAG_LOW;
+
+        if (PowerStatus->BatteryLifePercent >= 67)
+            PowerStatus->BatteryFlag |= BATTERY_FLAG_HIGH;
     }
 
-    if (!BattState.BatteryPresent) PowerStatus->BatteryFlag |= BATTERY_FLAG_NO_BATTERY;
+    if (!BattState.BatteryPresent)
+        PowerStatus->BatteryFlag |= BATTERY_FLAG_NO_BATTERY;
 
-    if (BattState.Charging) PowerStatus->BatteryFlag |= BATTERY_FLAG_CHARGING;
+    if (BattState.Charging)
+        PowerStatus->BatteryFlag |= BATTERY_FLAG_CHARGING;
 
-    if (!(BattState.AcOnLine) && (BattState.BatteryPresent)) PowerStatus->ACLineStatus = AC_LINE_OFFLINE;
+    if (!(BattState.AcOnLine) && (BattState.BatteryPresent))
+        PowerStatus->ACLineStatus = AC_LINE_OFFLINE;
 
-    if (BattState.EstimatedTime) PowerStatus->BatteryLifeTime = BattState.EstimatedTime;
+    if (BattState.EstimatedTime)
+        PowerStatus->BatteryLifeTime = BattState.EstimatedTime;
 
     return TRUE;
 }