| 1354 | } |
| 1355 | |
| 1356 | extern int ZEXPORT unzGoToFilePos64(unzFile file, const unz64_file_pos* file_pos) |
| 1357 | { |
| 1358 | unz64_s* s; |
| 1359 | int err; |
| 1360 | |
| 1361 | if (file==NULL || file_pos==NULL) |
| 1362 | return UNZ_PARAMERROR; |
| 1363 | s=(unz64_s*)file; |
| 1364 | |
| 1365 | /* jump to the right spot */ |
| 1366 | s->pos_in_central_dir = file_pos->pos_in_zip_directory; |
| 1367 | s->num_file = file_pos->num_of_file; |
| 1368 | |
| 1369 | /* set the current file */ |
| 1370 | err = unz64local_GetCurrentFileInfoInternal(file,&s->cur_file_info, |
| 1371 | &s->cur_file_info_internal, |
| 1372 | NULL,0,NULL,0,NULL,0); |
| 1373 | /* return results */ |
| 1374 | s->current_file_ok = (err == UNZ_OK); |
| 1375 | return err; |
| 1376 | } |
| 1377 | |
| 1378 | extern int ZEXPORT unzGoToFilePos( |
| 1379 | unzFile file, |
no test coverage detected