archive: replace zip_get_num_files (deprecated) by zip_get_num_entries
This commit is contained in:
parent
1b565f9879
commit
4f5fd31d81
|
@ -51,15 +51,16 @@ ArchiveFile* ZipArchive::OpenFile(const char* name)
|
|||
|
||||
struct zip_file *zip_fopen_by_crc(struct zip *za, u32 crc, int flags)
|
||||
{
|
||||
int i, n;
|
||||
zip_uint64_t i;
|
||||
zip_int64_t n;
|
||||
struct zip_stat stat;
|
||||
|
||||
if (crc == 0) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
n = zip_get_num_files(za);
|
||||
for (i = 0; i < n; i++) {
|
||||
n = zip_get_num_entries(za, 0);
|
||||
for (i = 0; i < (zip_uint64_t)n; i++) {
|
||||
if (zip_stat_index(za, i, flags, &stat) < -1) {
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue