AssetManager: fix up AssetInputStream

This commit is contained in:
Mis012
2024-06-13 20:37:35 +02:00
parent 2efa545e73
commit 4fd7e2cbb1
2 changed files with 12 additions and 3 deletions

View File

@@ -80,7 +80,7 @@ JNIEXPORT jint JNICALL Java_android_content_res_AssetManager_readAssetChar(JNIEn
struct Asset *asset = _PTR(_asset);
ret = Asset_read(asset, &byte, 1);
return (ret == 1) ? byte : ret;
return (ret == 1) ? byte : -1;
}
JNIEXPORT jlong JNICALL Java_android_content_res_AssetManager_seekAsset(JNIEnv *env, jobject this, jlong _asset, jlong offset, jint whence)