| 1336 | } |
| 1337 | |
| 1338 | extern int ZEXPORT unzGoToFilePos64(unzFile file, const unz64_file_pos* file_pos) |
| 1339 | { |
| 1340 | unz64_s* s; |
| 1341 | int err; |
| 1342 | |
| 1343 | if (file==NULL || file_pos==NULL) |
| 1344 | return UNZ_PARAMERROR; |
| 1345 | s=(unz64_s*)file; |
| 1346 | |
| 1347 | /* jump to the right spot */ |
| 1348 | s->pos_in_central_dir = file_pos->pos_in_zip_directory; |
| 1349 | s->num_file = file_pos->num_of_file; |
| 1350 | |
| 1351 | /* set the current file */ |
| 1352 | err = unz64local_GetCurrentFileInfoInternal(file,&s->cur_file_info, |
| 1353 | &s->cur_file_info_internal, |
| 1354 | NULL,0,NULL,0,NULL,0); |
| 1355 | /* return results */ |
| 1356 | s->current_file_ok = (err == UNZ_OK); |
| 1357 | return err; |
| 1358 | } |
| 1359 | |
| 1360 | extern int ZEXPORT unzGoToFilePos( |
| 1361 | unzFile file, |
no test coverage detected