fixup
This commit is contained in:
parent
8aacb243d2
commit
47ffd8f160
|
@ -104,11 +104,11 @@ Encrypt(JNIEnv* env, jobject p, char* cid, int idlen, char* cdata, int datalen,
|
|||
void
|
||||
Clip(JNIEnv* env, jobject p, char* cdata, int datalen) {
|
||||
jbyteArray data = (*env)->NewByteArray(env, datalen);
|
||||
if (datalen > 0 {
|
||||
if (datalen > 0) {
|
||||
(*env)->SetByteArrayRegion(env, data, 0, datalen, cdata);
|
||||
}
|
||||
jclass cls = (*env)->GetObjectClass(p);
|
||||
jmethodID mid = (*env)->GetMethodID(env, cls, "Clip", "([B)V);
|
||||
jclass cls = (*env)->GetObjectClass(env, p);
|
||||
jmethodID mid = (*env)->GetMethodID(env, cls, "Clip", "([B)V");
|
||||
(*env)->CallVoidMethod(env, p, mid, data);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user