library.c : fix JniAttach attach/detach status
This commit is contained in:
parent
814e076d64
commit
122aea9c80
|
@ -31,14 +31,14 @@ static bool JniAttach( JNIEnv **env )
|
||||||
// attach thread to JNI
|
// attach thread to JNI
|
||||||
//(*gJavaVM)->AttachCurrentThread( gJavaVM, (void **)env, NULL ); // Oracle JNI API
|
//(*gJavaVM)->AttachCurrentThread( gJavaVM, (void **)env, NULL ); // Oracle JNI API
|
||||||
(*gJavaVM)->AttachCurrentThread( gJavaVM, env, NULL ); // Android JNI API
|
(*gJavaVM)->AttachCurrentThread( gJavaVM, env, NULL ); // Android JNI API
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
else if (status != JNI_OK)
|
else if (status != JNI_OK)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
|
Loading…
Reference in New Issue