Fix return value

This commit is contained in:
Martin Raiber 2022-01-22 22:14:31 +01:00 committed by GitHub
parent 1541a11e9b
commit f3d9e2293b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1636,7 +1636,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))