[libbluray-devel] bdj: fixed java_home type. fixes crash with wine.

hpi1 git at videolan.org
Sun Mar 2 09:27:05 CET 2014


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Sun Mar  2 10:26:14 2014 +0200| [1d0a08baa77e385adb1406b73f4f4f831551cdc0] | committer: hpi1

bdj: fixed java_home type. fixes crash with wine.

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

 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 4253aef..83b2dfa 100644
--- a/src/libbluray/bdj/bdj.c
+++ b/src/libbluray/bdj/bdj.c
@@ -52,7 +52,7 @@ typedef jint (JNICALL * fptr_JNI_CreateJavaVM) (JavaVM **pvm, void **penv,void *
 #if defined(_WIN32) && !defined(HAVE_BDJ_J2ME)
 static void *_load_jvm_win32(const char **p_java_home)
 {
-    static const char java_home[256] = "";
+    static char java_home[256] = "";
 
     wchar_t buf_loc[4096] = L"SOFTWARE\\JavaSoft\\Java Runtime Environment\\";
     wchar_t buf_vers[128];



More information about the libbluray-devel mailing list