[libbluray-devel] dl_win32: Remove invalid LoadLibraryEx flag

Hugo Beauzée-Luyssen git at videolan.org
Fri Mar 17 12:37:43 CET 2017


libbluray | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu Mar 16 14:59:20 2017 +0100| [6c13762dfd27d55b74104d947a80b86bbe8a712b] | committer: hpi1

dl_win32: Remove invalid LoadLibraryEx flag

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+

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=6c13762dfd27d55b74104d947a80b86bbe8a712b
---

 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 c2cbff4..4bce555 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);



More information about the libbluray-devel mailing list