[PSDK] Fix BATTERY_UNKNOWN_TIME value constant

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
This commit is contained in:
George Bișoc 2025-01-08 23:49:15 +01:00
parent 13b394c1a7
commit 02032b7106
No known key found for this signature in database
GPG key ID: 688C4FBE25D7DEF6

View file

@ -65,7 +65,7 @@ DEFINE_GUID(BATTERY_TAG_CHANGE_WMI_GUID,
#define BATTERY_UNKNOWN_CAPACITY 0xFFFFFFFF #define BATTERY_UNKNOWN_CAPACITY 0xFFFFFFFF
/* BatteryEstimatedTime constant */ /* BatteryEstimatedTime constant */
#define BATTERY_UNKNOWN_TIME 0x80000000 #define BATTERY_UNKNOWN_TIME 0xFFFFFFFF
#define MAX_BATTERY_STRING_SIZE 128 #define MAX_BATTERY_STRING_SIZE 128