Correct calling convention

Fixes #556
This commit is contained in:
Sascha Willems 2019-03-31 21:24:45 +02:00
parent f6b99f9b01
commit 84b1c30714

View file

@ -998,7 +998,7 @@ void VulkanExampleBase::setupConsole(std::string title)
void VulkanExampleBase::setupDPIAwareness() void VulkanExampleBase::setupDPIAwareness()
{ {
using SetProcessDpiAwarenessFunc = HRESULT(*)(PROCESS_DPI_AWARENESS); typedef HRESULT *(__stdcall *SetProcessDpiAwarenessFunc)(PROCESS_DPI_AWARENESS);
HMODULE shCore = LoadLibraryA("Shcore.dll"); HMODULE shCore = LoadLibraryA("Shcore.dll");
if (shCore) if (shCore)