client: Use explicit battery state code with same value (0)

This commit is contained in:
Dmitry Tsarevich 2020-05-07 14:09:52 +03:00
parent 3ee78d64ec
commit 0310960571
No known key found for this signature in database
GPG Key ID: E3C61298FF5B1274
1 changed files with 1 additions and 1 deletions

View File

@ -1544,7 +1544,7 @@ int HOST_INFO::get_host_battery_state() {
SYSTEM_POWER_STATUS Status;
ZeroMemory(&Status, sizeof(SYSTEM_POWER_STATUS));
if (!GetSystemPowerStatus(&Status)) {
return false;
return BATTERY_STATE_UNKNOWN;
}
// Sometimes the system reports the ACLineStatus as an