Browse Source

Add cast to return value of GetProcAddress().

tags/v2.1.1
Andrew Belt 2 years ago
parent
commit
5d9534810f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/plugin.cpp

+ 1
- 1
src/plugin.cpp View File

@@ -47,7 +47,7 @@ static void* getSymbol(void* handle, const char* name) {
return NULL;

#if defined ARCH_WIN
return GetProcAddress((HMODULE) handle, name);
return (void*) GetProcAddress((HMODULE) handle, name);
#else
return dlsym(handle, name);
#endif


Loading…
Cancel
Save