windows: Fix unicode support (Fix #3394)
This commit is contained in:
@@ -46,7 +46,7 @@ class DynamicLibrary {
|
||||
bool TryToLoad(const std::string& library_name) {
|
||||
library_name_ = std::string(library_name);
|
||||
#if defined(_MSC_VER)
|
||||
library_handle_ = static_cast<void*>(LoadLibrary(library_name.c_str()));
|
||||
library_handle_ = static_cast<void*>(LoadLibraryA(library_name.c_str()));
|
||||
#elif defined(__GNUC__)
|
||||
library_handle_ = dlopen(library_name.c_str(), RTLD_NOW);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user