mirror of
https://github.com/zlib-ng/minizip-ng
synced 2025-03-28 21:13:18 +00:00
Only return MZ_MEM_ERROR if no other error code was returned before.
This commit is contained in:
parent
76daa9956f
commit
b4affb4f9d
2
mz_zip.c
2
mz_zip.c
@ -1802,7 +1802,7 @@ static int32_t mz_zip_entry_open_int(void *handle, uint8_t raw, int16_t compress
|
|||||||
err = MZ_PARAM_ERROR;
|
err = MZ_PARAM_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!zip->compress_stream)
|
if (err == MZ_OK && !zip->compress_stream)
|
||||||
err = MZ_MEM_ERROR;
|
err = MZ_MEM_ERROR;
|
||||||
|
|
||||||
if (err == MZ_OK) {
|
if (err == MZ_OK) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user