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");
}

@ -1 +1 @@
Subproject commit 4cdaa3c9cb2d649f45a928d65d900d6b6bb5be3a
Subproject commit ced231980e0f88b9c7b454c456256c71c4f3cb75