fix for bug 26899
git-svn-id: svn://10.0.0.236/trunk@60044 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -492,8 +492,7 @@ JNIEnv* nsJavaDOMImpl::GetJNIEnv() {
|
||||
StartJVM();
|
||||
}
|
||||
#ifdef XP_PC
|
||||
jvm->AttachCurrentThread(&env,NULL);
|
||||
// jvm->AttachCurrentThread((void**)&env,NULL);
|
||||
jvm->AttachCurrentThread((void**)&env,NULL);
|
||||
#else
|
||||
jvm->AttachCurrentThread(&env,NULL);
|
||||
#endif
|
||||
@@ -537,8 +536,7 @@ void nsJavaDOMImpl::StartJVM(void) {
|
||||
printf("classpath is \"%s\"\n", vm_args.classpath);
|
||||
#endif // DEBUG
|
||||
#ifdef XP_PC
|
||||
jint rv = JNI_CreateJavaVM(&jvm, &env, &vm_args);
|
||||
// jint rv = JNI_CreateJavaVM(&jvm, (void**)&env, &vm_args);
|
||||
jint rv = JNI_CreateJavaVM(&jvm, (void**)&env, &vm_args);
|
||||
#else
|
||||
jint rv = JNI_CreateJavaVM(&jvm, &env, &vm_args);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user