https://git.reactos.org/?p=reactos.git;a=commitdiff;h=02032b71068c9d5808f20…
commit 02032b71068c9d5808f20dbd7401674b84cb1a2f
Author: George Bișoc <george.bisoc(a)reactos.org>
AuthorDate: Wed Jan 8 23:49:15 2025 +0100
Commit: George Bișoc <george.bisoc(a)reactos.org>
CommitDate: Wed Jan 8 23:49:15 2025 +0100
[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
---
sdk/include/psdk/batclass.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sdk/include/psdk/batclass.h b/sdk/include/psdk/batclass.h
index f97140d9b05..02641a65f86 100644
--- a/sdk/include/psdk/batclass.h
+++ b/sdk/include/psdk/batclass.h
@@ -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