[libbluray-devel] Use correct directory separator chars
hpi1
git at videolan.org
Mon Apr 25 16:32:57 CEST 2016
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Mon Apr 25 17:30:44 2016 +0300| [02f35cba1f86e3c66ab26dbebf51234674aadb2b] | committer: hpi1
Use correct directory separator chars
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=02f35cba1f86e3c66ab26dbebf51234674aadb2b
---
src/libbluray/bdj/bdj.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/libbluray/bdj/bdj.c b/src/libbluray/bdj/bdj.c
index 6ff6f2b..101d335 100644
--- a/src/libbluray/bdj/bdj.c
+++ b/src/libbluray/bdj/bdj.c
@@ -167,7 +167,7 @@ static inline char *_utf8_to_cp(const char *utf8)
static void *_jvm_dlopen(const char *java_home, const char *jvm_dir, const char *jvm_lib)
{
if (java_home) {
- char *path = str_printf("%s/%s/%s", java_home, jvm_dir, jvm_lib);
+ char *path = str_printf("%s" DIR_SEP "%s" DIR_SEP "%s", java_home, jvm_dir, jvm_lib);
if (!path) {
BD_DEBUG(DBG_CRIT, "out of memory\n");
return NULL;
@@ -197,7 +197,7 @@ static void *_load_jvm(const char **p_java_home)
#else
# ifdef _WIN32
static const char *jvm_path[] = {NULL, JDK_HOME};
- static const char jvm_dir[] = "jre/bin/server";
+ static const char jvm_dir[] = "jre\\bin\\server";
static const char jvm_lib[] = "jvm";
# else
static const char *jvm_path[] = {NULL, JDK_HOME,
More information about the libbluray-devel
mailing list