miniz: fixed a bad return introduced in previous update.

This commit is contained in:
Ozkan Sezer 2022-01-23 10:02:02 +03:00
parent b5bb9976c2
commit f260464d96

View file

@ -2004,7 +2004,7 @@ void *mz_zip_reader_extract_to_heap(mz_zip_archive *pZip, mz_uint file_index, si
*pSize = 0;
if (!mz_zip_reader_file_stat(pZip, file_index, &file_stat))
return MZ_FALSE;
return NULL;
alloc_size = (flags & MZ_ZIP_FLAG_COMPRESSED_DATA) ? file_stat.m_comp_size : file_stat.m_uncomp_size;
if (((sizeof(size_t) == sizeof(mz_uint32))) && (alloc_size > 0x7FFFFFFF))
@ -2244,7 +2244,7 @@ mz_uint mz_zip_reader_get_filename(mz_zip_archive *pZip, mz_uint file_index, cha
}
return n + 1;
}
#endif /* #if 0 */
#endif /* unused */
mz_bool mz_zip_reader_file_stat(mz_zip_archive *pZip, mz_uint file_index, mz_zip_archive_file_stat *pStat)
{