Skip to content

Commit

Permalink
nvapi: Mark nvapi_QueryInterface as dllexport, cdecl
Browse files Browse the repository at this point in the history
This function has to be exported.
  • Loading branch information
ishitatsuyuki committed Jan 19, 2024
1 parent 22a73b7 commit 5503116
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nvapi_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ extern "C" {

static std::unordered_map<NvU32, void*> registry;

void* nvapi_QueryInterface(NvU32 id) {
__declspec(dllexport) __cdecl void* nvapi_QueryInterface(NvU32 id) {
auto entry = registry.find(id);
if (entry != registry.end())
return entry->second;
Expand Down

0 comments on commit 5503116

Please sign in to comment.