diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-11-30 22:37:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-30 22:37:32 +0100 |
commit | d2e05b6e9bca9fcc9b7acaa74b4dbc7602982bbc (patch) | |
tree | b3aec9bb1a58b344b44e29e33611cdfdad8967d5 | |
parent | 581ee23a15c0316aec539a8ff5c282e8d37aa191 (diff) | |
parent | 4c930f366346f2d61a1f6da9d9c2e30fb9839352 (diff) |
Merge pull request #13412 from BastiaanOlij/fix_loadlibraryexw
Needed a broader search path flag
-rw-r--r-- | platform/windows/os_windows.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp index d4612783c7..3bdc307c3a 100644 --- a/platform/windows/os_windows.cpp +++ b/platform/windows/os_windows.cpp @@ -1597,7 +1597,7 @@ Error OS_Windows::open_dynamic_library(const String p_path, void *&p_library_han cookie = AddDllDirectory(p_path.get_base_dir().c_str()); } - p_library_handle = (void *)LoadLibraryExW(p_path.c_str(),NULL,p_also_set_library_path ? LOAD_LIBRARY_SEARCH_USER_DIRS : 0); + p_library_handle = (void *)LoadLibraryExW(p_path.c_str(), NULL, p_also_set_library_path ? LOAD_LIBRARY_SEARCH_DEFAULT_DIRS : 0); if (p_also_set_library_path) { RemoveDllDirectory(cookie); |