mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 15:31:39 +00:00
miniz: fixed a bad return introduced in previous update.
This commit is contained in:
parent
b5bb9976c2
commit
f260464d96
1 changed files with 2 additions and 2 deletions
|
@ -2004,7 +2004,7 @@ void *mz_zip_reader_extract_to_heap(mz_zip_archive *pZip, mz_uint file_index, si
|
||||||
*pSize = 0;
|
*pSize = 0;
|
||||||
|
|
||||||
if (!mz_zip_reader_file_stat(pZip, file_index, &file_stat))
|
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;
|
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))
|
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;
|
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)
|
mz_bool mz_zip_reader_file_stat(mz_zip_archive *pZip, mz_uint file_index, mz_zip_archive_file_stat *pStat)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue