From a654f25957979c381760916f6382b526ef024491 Mon Sep 17 00:00:00 2001 From: superp00t Date: Tue, 1 Apr 2025 15:56:07 -0400 Subject: [PATCH] fix(processor): LPCALLNTPOWERINFORMATIONFUNC should return LONG instead of the error-prone NTSTATUS --- common/processor/win/Processor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/processor/win/Processor.cpp b/common/processor/win/Processor.cpp index 6f0bb0e..ffaf8c2 100644 --- a/common/processor/win/Processor.cpp +++ b/common/processor/win/Processor.cpp @@ -329,7 +329,7 @@ int32_t IOsGetPowerProfFrequency() { int32_t result = 0; - typedef NTSTATUS (*LPCALLNTPOWERINFORMATIONFUNC)(POWER_INFORMATION_LEVEL, PVOID, ULONG, PVOID, ULONG); + typedef LONG (*LPCALLNTPOWERINFORMATIONFUNC)(POWER_INFORMATION_LEVEL, PVOID, ULONG, PVOID, ULONG); auto CallNtPowerInformation = reinterpret_cast(GetProcAddress(library, "CallNtPowerInformation")); if (CallNtPowerInformation) { struct PROCESSOR_POWER_INFORMATION {