Android: Fix get_buffer false positive on empty dest buffer
Follow-up to #46810, this was missed in #47079 when fixing the issue
for other platforms.
Fixes #48135.
(cherry picked from commit a09f3833bd
)
This commit is contained in:
parent
ed9c366370
commit
5820e36705
1 changed files with 1 additions and 1 deletions
|
@ -125,7 +125,7 @@ uint8_t FileAccessAndroid::get_8() const {
|
|||
}
|
||||
|
||||
int FileAccessAndroid::get_buffer(uint8_t *p_dst, int p_length) const {
|
||||
ERR_FAIL_COND_V(!p_dst, -1);
|
||||
ERR_FAIL_COND_V(!p_dst && p_length > 0, -1);
|
||||
ERR_FAIL_COND_V(p_length < 0, -1);
|
||||
|
||||
off_t r = AAsset_read(a, p_dst, p_length);
|
||||
|
|
Loading…
Reference in a new issue