From 3a45430d9b15961ada18b1cfca24ca3c03d4ab13 Mon Sep 17 00:00:00 2001 From: ns6089 <61738816+ns6089@users.noreply.github.com> Date: Sun, 13 Aug 2023 11:24:58 +0300 Subject: [PATCH] Mark nvapi_QueryInterface as cdecl Shouldn't matter on x64 since everything is fastcall here, but cdecl is the correct declaration. --- src/platform/windows/nvprefs/nvapi_opensource_wrapper.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/platform/windows/nvprefs/nvapi_opensource_wrapper.cpp b/src/platform/windows/nvprefs/nvapi_opensource_wrapper.cpp index 23a85842ff2..e1010737d55 100644 --- a/src/platform/windows/nvprefs/nvapi_opensource_wrapper.cpp +++ b/src/platform/windows/nvprefs/nvapi_opensource_wrapper.cpp @@ -24,8 +24,7 @@ namespace { #undef NVAPI_INTERFACE #define NVAPI_INTERFACE NvAPI_Status __cdecl -extern void * -nvapi_QueryInterface(NvU32 id); +extern void *__cdecl nvapi_QueryInterface(NvU32 id); NVAPI_INTERFACE NvAPI_Initialize() {