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:
parent
363e964acc
commit
db38696c48
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user