From: Tomas Mendes <rtdiasmendes(a)gmail.com> --- dlls/ntdll/tests/info.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dlls/ntdll/tests/info.c b/dlls/ntdll/tests/info.c index 21c7ec1f18d..b9a8c534f80 100644 --- a/dlls/ntdll/tests/info.c +++ b/dlls/ntdll/tests/info.c @@ -1652,9 +1652,7 @@ static void test_query_battery(void) "expected MaxCapacity %lu to be greater than or equal to RemainingCapacity %lu\n", bs.MaxCapacity, bs.RemainingCapacity); - if (!bs.BatteryPresent) - time_left = 0; - else if ((LONG)bs.Rate < 0) + if ((LONG)bs.Rate < 0) time_left = 3600 * bs.RemainingCapacity / -(LONG)bs.Rate; else time_left = ~0u; -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/8460