Fix for windows.

This commit is contained in:
Adam Treat
2023-08-30 18:10:20 -04:00
parent 17d3e4976c
commit f578fa6cdf
2 changed files with 2 additions and 2 deletions

View File

@@ -75,7 +75,7 @@ public:
Dlhandle() : chandle(nullptr) {}
Dlhandle(const std::string& fpath) {
chandle = LoadLibraryA(fpath.c_str());
chandle = LoadLibraryExA(fpath.c_str(), NULL, LOAD_LIBRARY_SEARCH_DEFAULT_DIRS | LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR);
if (!chandle) {
throw Exception("dlopen(\""+fpath+"\"): Error");
}