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 authored and jp7677 committed Jan 19, 2024
1 parent ce05006 commit 2f00dc0
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) void* __cdecl nvapi_QueryInterface(NvU32 id) {
auto entry = registry.find(id);
if (entry != registry.end())
return entry->second;
Expand Down

0 comments on commit 2f00dc0

Please sign in to comment.