[PSDK] Fix BATTERY_UNKNOWN_TIME value constant 7602/head
authorGeorge Bișoc <george.bisoc@reactos.org>
Wed, 8 Jan 2025 22:49:15 +0000 (23:49 +0100)
committerGeorge Bișoc <george.bisoc@reactos.org>
Wed, 8 Jan 2025 22:49:15 +0000 (23:49 +0100)
Windows SDKs define this constant to 0xFFFFFFFF but we define it to 0x80000000.
As a result, when our COMPBATT driver is being tested on Windows (namely XP, Vista and 7), BATTERY_UNKNOWN_TIME is not interpreted as UNKNOWN TIME but entirely something else.

CORE-18969
CORE-19452

sdk/include/psdk/batclass.h

index f97140d..02641a6 100644 (file)
@@ -65,7 +65,7 @@ DEFINE_GUID(BATTERY_TAG_CHANGE_WMI_GUID,
 #define BATTERY_UNKNOWN_CAPACITY          0xFFFFFFFF
 
 /* BatteryEstimatedTime constant */
-#define BATTERY_UNKNOWN_TIME              0x80000000
+#define BATTERY_UNKNOWN_TIME              0xFFFFFFFF
 
 #define MAX_BATTERY_STRING_SIZE           128