Skip to content

Commit 02032b7

Browse files
committed
[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
1 parent 13b394c commit 02032b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/include/psdk/batclass.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ DEFINE_GUID(BATTERY_TAG_CHANGE_WMI_GUID,
6565
#define BATTERY_UNKNOWN_CAPACITY 0xFFFFFFFF
6666

6767
/* BatteryEstimatedTime constant */
68-
#define BATTERY_UNKNOWN_TIME 0x80000000
68+
#define BATTERY_UNKNOWN_TIME 0xFFFFFFFF
6969

7070
#define MAX_BATTERY_STRING_SIZE 128
7171

0 commit comments

Comments
 (0)