mirror of
https://github.com/thunderbrewhq/common.git
synced 2025-12-12 11:12:29 +00:00
fix(processor): LPCALLNTPOWERINFORMATIONFUNC should return LONG instead of the error-prone NTSTATUS
This commit is contained in:
parent
98adb41e3c
commit
a654f25957
1 changed files with 1 additions and 1 deletions
|
|
@ -329,7 +329,7 @@ int32_t IOsGetPowerProfFrequency() {
|
||||||
|
|
||||||
int32_t result = 0;
|
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<LPCALLNTPOWERINFORMATIONFUNC>(GetProcAddress(library, "CallNtPowerInformation"));
|
auto CallNtPowerInformation = reinterpret_cast<LPCALLNTPOWERINFORMATIONFUNC>(GetProcAddress(library, "CallNtPowerInformation"));
|
||||||
if (CallNtPowerInformation) {
|
if (CallNtPowerInformation) {
|
||||||
struct PROCESSOR_POWER_INFORMATION {
|
struct PROCESSOR_POWER_INFORMATION {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue