From 6c5fa8a08d7796b3089dbf2ee8cc6579e2142201 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 23a85842..e1010737 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() {