mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-03 09:49:19 +02:00
better error handling in inflate()
This commit is contained in:
parent
ed7179afa6
commit
2bd25967e7
1 changed files with 2 additions and 2 deletions
|
@ -51,7 +51,7 @@ jlong Java_org_amse_ys_zip_DeflatingDecompressor_inflate(JNIEnv *env, jobject th
|
|||
}
|
||||
}
|
||||
if (stream == 0) {
|
||||
return 0;
|
||||
return -1;
|
||||
}
|
||||
|
||||
jbyte* inStart = env->GetByteArrayElements(in, 0);
|
||||
|
@ -71,5 +71,5 @@ jlong Java_org_amse_ys_zip_DeflatingDecompressor_inflate(JNIEnv *env, jobject th
|
|||
}
|
||||
return result;
|
||||
}
|
||||
return 0;
|
||||
return -2;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue