Fix bit not being set properly
This commit is contained in:
parent
3a47d05880
commit
e2c4080f23
@ -2788,7 +2788,7 @@ mz_bool mz_zip_writer_add_mem_ex_v2(mz_zip_archive *pZip, const char *pArchive_n
|
||||
mz_uint8 extra_data[MZ_ZIP64_MAX_CENTRAL_EXTRA_FIELD_SIZE];
|
||||
mz_uint16 bit_flags = 0;
|
||||
|
||||
if(uncomp_size)
|
||||
if(uncomp_size || ( buf_size && !(level_and_flags & MZ_ZIP_FLAG_COMPRESSED_DATA) ) )
|
||||
bit_flags |= MZ_ZIP_LDH_BIT_FLAG_HAS_LOCATOR;
|
||||
|
||||
if (level_and_flags & MZ_ZIP_FLAG_UTF8_FILENAME )
|
||||
|
||||
Loading…
Reference in New Issue
Block a user