library.c : fix JniAttach attach/detach status

This commit is contained in:
rom 2016-06-24 18:34:26 +03:00
parent 814e076d64
commit 122aea9c80
1 changed files with 2 additions and 2 deletions

View File

@ -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;
} }
/*! /*!