| 1212 | } |
| 1213 | |
| 1214 | extern int ZEXPORT unzGoToFilePos64(unzFile file, const unz64_file_pos* file_pos) { |
| 1215 | unz64_s* s; |
| 1216 | int err; |
| 1217 | |
| 1218 | if (file==NULL || file_pos==NULL) |
| 1219 | return UNZ_PARAMERROR; |
| 1220 | s=(unz64_s*)file; |
| 1221 | |
| 1222 | /* jump to the right spot */ |
| 1223 | s->pos_in_central_dir = file_pos->pos_in_zip_directory; |
| 1224 | s->num_file = file_pos->num_of_file; |
| 1225 | |
| 1226 | /* set the current file */ |
| 1227 | err = unz64local_GetCurrentFileInfoInternal(file,&s->cur_file_info, |
| 1228 | &s->cur_file_info_internal, |
| 1229 | NULL,0,NULL,0,NULL,0); |
| 1230 | /* return results */ |
| 1231 | s->current_file_ok = (err == UNZ_OK); |
| 1232 | return err; |
| 1233 | } |
| 1234 | |
| 1235 | extern int ZEXPORT unzGoToFilePos(unzFile file, unz_file_pos* file_pos) { |
| 1236 | unz64_file_pos file_pos64; |
no test coverage detected