Set the current file of the zipfile to the next file. return UNZ_OK if there is no problem return UNZ_END_OF_LIST_OF_FILE if the actual file was the latest.
| 3209 | // return UNZ_OK if there is no problem |
| 3210 | // return UNZ_END_OF_LIST_OF_FILE if the actual file was the latest. |
| 3211 | int unzGoToNextFile (unzFile file) |
| 3212 | { |
| 3213 | unz_s* s; |
| 3214 | int err; |
| 3215 | |
| 3216 | if (file==NULL) |
| 3217 | return UNZ_PARAMERROR; |
| 3218 | s=(unz_s*)file; |
| 3219 | if (!s->current_file_ok) |
| 3220 | return UNZ_END_OF_LIST_OF_FILE; |
| 3221 | if (s->num_file+1==s->gi.number_entry) |
| 3222 | return UNZ_END_OF_LIST_OF_FILE; |
| 3223 | |
| 3224 | s->pos_in_central_dir += SIZECENTRALDIRITEM + s->cur_file_info.size_filename + |
| 3225 | s->cur_file_info.size_file_extra + s->cur_file_info.size_file_comment ; |
| 3226 | s->num_file++; |
| 3227 | err = unzlocal_GetCurrentFileInfoInternal(file,&s->cur_file_info, |
| 3228 | &s->cur_file_info_internal, |
| 3229 | NULL,0,NULL,0,NULL,0); |
| 3230 | s->current_file_ok = (err == UNZ_OK); |
| 3231 | return err; |
| 3232 | } |
| 3233 | |
| 3234 | |
| 3235 | // Try locate the file szFileName in the zipfile. |
no test coverage detected