[libbluray-devel] [PATCH] dl_win32: Remove invalid LoadLibraryEx flag

Hugo Beauzée-Luyssen hugo at beauzee.fr
Thu Mar 16 14:59:20 CET 2017


LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR requires a fully qualified path, which
we don't pass.
This fixes loading libaacs on systems with KB2533623 installed, or on
Win8+
---
 src/file/dl_win32.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/file/dl_win32.c b/src/file/dl_win32.c
index c2cbff41..4bce5558 100644
--- a/src/file/dl_win32.c
+++ b/src/file/dl_win32.c
@@ -82,7 +82,6 @@ void *dl_dlopen(const char *path, const char *version)
                        "SetDefaultDllDirectories") != NULL)
 #endif
         flags = LOAD_LIBRARY_SEARCH_APPLICATION_DIR |
-                LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR |
                 LOAD_LIBRARY_SEARCH_SYSTEM32;
 
     result = LoadLibraryExW(wname, NULL, flags);
-- 
2.11.0



More information about the libbluray-devel mailing list