From 84b1c30714a09b0bd13941af7f0f16cd30cf4ed1 Mon Sep 17 00:00:00 2001 From: Sascha Willems Date: Sun, 31 Mar 2019 21:24:45 +0200 Subject: [PATCH] Correct calling convention Fixes #556 --- base/vulkanexamplebase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/vulkanexamplebase.cpp b/base/vulkanexamplebase.cpp index eff3aa4f..552817e1 100644 --- a/base/vulkanexamplebase.cpp +++ b/base/vulkanexamplebase.cpp @@ -998,7 +998,7 @@ void VulkanExampleBase::setupConsole(std::string title) void VulkanExampleBase::setupDPIAwareness() { - using SetProcessDpiAwarenessFunc = HRESULT(*)(PROCESS_DPI_AWARENESS); + typedef HRESULT *(__stdcall *SetProcessDpiAwarenessFunc)(PROCESS_DPI_AWARENESS); HMODULE shCore = LoadLibraryA("Shcore.dll"); if (shCore)