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 {