Skip to content

Commit

Permalink
use LoadLibraryExA for more robust library loading (#755)
Browse files Browse the repository at this point in the history
  • Loading branch information
metab0t authored Mar 25, 2024
1 parent 5fd7463 commit 97d4f54
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Common/IpLibraryLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ void LibraryLoader::loadLibrary()
}

#ifdef HAVE_WINDOWS_H
libhandle = (void*)LoadLibrary(libname.c_str());
libhandle = (void*)LoadLibraryExA(libname.c_str(), NULL, LOAD_LIBRARY_SEARCH_DEFAULT_DIRS | LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR);

if( libhandle == NULL )
{
std::stringstream s;
Expand Down

0 comments on commit 97d4f54

Please sign in to comment.