Skip to content

Commit

Permalink
Mark nvapi_QueryInterface as cdecl
Browse files Browse the repository at this point in the history
Shouldn't matter on x64 since everything is fastcall here, but cdecl is
the correct declaration.
  • Loading branch information
ns6089 authored and cgutman committed Aug 13, 2023
1 parent 68fa43a commit 6c5fa8a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/platform/windows/nvprefs/nvapi_opensource_wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 6c5fa8a

Please sign in to comment.