mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2024-10-01 01:06:10 -04:00
Fix for windows.
This commit is contained in:
parent
17d3e4976c
commit
f578fa6cdf
@ -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
|
Loading…
Reference in New Issue
Block a user