Fix calling convention for SetProcessDpiAwareness

A few changes ago a WINAPI was lost on SetProcessDpiAwareness function
declaration. This is incorrect because it changes calling convention
from stdcall to cdecl.
This commit is contained in:
Anton Vasiliev 2021-12-13 00:10:23 +03:00 committed by Lukas Dürrenberger
parent 363e964acc
commit db38696c48

View File

@ -85,7 +85,7 @@ namespace
ProcessPerMonitorDpiAware = 2 ProcessPerMonitorDpiAware = 2
}; };
using SetProcessDpiAwarenessFuncType = HRESULT (*)(ProcessDpiAwareness); using SetProcessDpiAwarenessFuncType = HRESULT (WINAPI *)(ProcessDpiAwareness);
auto SetProcessDpiAwarenessFunc = reinterpret_cast<SetProcessDpiAwarenessFuncType>(reinterpret_cast<void*>(GetProcAddress(shCoreDll, "SetProcessDpiAwareness"))); auto SetProcessDpiAwarenessFunc = reinterpret_cast<SetProcessDpiAwarenessFuncType>(reinterpret_cast<void*>(GetProcAddress(shCoreDll, "SetProcessDpiAwareness")));
if (SetProcessDpiAwarenessFunc) if (SetProcessDpiAwarenessFunc)