new gtest version: 1.8.0
parent
fe5277e117
commit
fb660823fc
|
@ -4427,7 +4427,7 @@ mz_bool mz_zip_writer_add_file(mz_zip_archive *pZip, const char *pArchive_name,
|
||||||
mz_uint8 local_dir_header[MZ_ZIP_LOCAL_DIR_HEADER_SIZE];
|
mz_uint8 local_dir_header[MZ_ZIP_LOCAL_DIR_HEADER_SIZE];
|
||||||
MZ_FILE *pSrc_file = NULL;
|
MZ_FILE *pSrc_file = NULL;
|
||||||
|
|
||||||
if ((!pZip) || (!pZip->m_pState) || (pZip->m_zip_mode != MZ_ZIP_MODE_WRITING) || (!pArchive_name) || ((comment_size) && (!pComment)) || (level > MZ_UBER_COMPRESSION))
|
if ((!pZip) || (!pZip->m_pState) || (pZip->m_zip_mode != MZ_ZIP_MODE_WRITING) || (!pArchive_name) || ((comment_size) && (!pComment)) || ( level_and_flags > MZ_UBER_COMPRESSION))
|
||||||
return MZ_FALSE;
|
return MZ_FALSE;
|
||||||
|
|
||||||
local_dir_header_ofs = cur_archive_file_ofs = pZip->m_archive_size;
|
local_dir_header_ofs = cur_archive_file_ofs = pZip->m_archive_size;
|
||||||
|
|
Loading…
Reference in New Issue