[libbluray-devel] win32: do not restore $PWD to default dll search path

hpi1 git at videolan.org
Thu Mar 2 10:15:30 CET 2017


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Thu Mar  2 11:14:12 2017 +0200| [dc0d8293b1d69ba14d0216629e495b438200218b] | committer: hpi1

win32: do not restore $PWD to default dll search path

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

 src/libbluray/bdj/bdj.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libbluray/bdj/bdj.c b/src/libbluray/bdj/bdj.c
index 2a2e2e6..1481e07 100644
--- a/src/libbluray/bdj/bdj.c
+++ b/src/libbluray/bdj/bdj.c
@@ -135,7 +135,7 @@ static void *_load_jvm_win32(const char **p_java_home)
 
     SetDllDirectoryW(java_path);
     void *result = LoadLibraryW(buf_loc);
-    SetDllDirectoryW(NULL);
+    SetDllDirectoryW(L"");
 
     if (!WideCharToMultiByte(CP_UTF8, 0, buf_loc, -1, strbuf, sizeof(strbuf), NULL, NULL)) {
         strbuf[0] = 0;



More information about the libbluray-devel mailing list