diff --git a/src/common/windows/timer_resolution.cpp b/src/common/windows/timer_resolution.cpp index b742c32bd4..1fb985b735 100644 --- a/src/common/windows/timer_resolution.cpp +++ b/src/common/windows/timer_resolution.cpp @@ -65,7 +65,7 @@ TimerResolution GetTimerResolution() { void SetHighQoS() { // https://learn.microsoft.com/en-us/windows/win32/procthread/quality-of-service - static auto auto pf = (decltype(&SetProcessInformation))(void*)GetProcAddress(GetModuleHandle(TEXT("Kernel32.dll")), "SetProcessInformation"); + static auto pf = (decltype(&SetProcessInformation))(void*)GetProcAddress(GetModuleHandle(TEXT("Kernel32.dll")), "SetProcessInformation"); if (pf) { PROCESS_POWER_THROTTLING_STATE PowerThrottling{ .Version = PROCESS_POWER_THROTTLING_CURRENT_VERSION,