Fix Windows build error

This commit is contained in:
Matthias Hochsteger 2024-05-06 12:53:00 +02:00
parent 96bf1453d3
commit 11979f1b13

View File

@ -177,7 +177,7 @@ namespace ngcore
Unload();
lib_name = lib_name_;
#ifdef WIN32
lib = LoadLibrary(lib_name.string().c_str());
lib = LoadLibrary(lib_name.wstring().c_str());
if (!lib) throw std::runtime_error(string("Could not load library ") + lib_name.string());
#else // WIN32
auto flags = RTLD_NOW;