| 2102 | } |
| 2103 | |
| 2104 | extern int ZEXPORT unzSetOffset64(unzFile file, ZPOS64_T pos) |
| 2105 | { |
| 2106 | unz64_s* s; |
| 2107 | int err; |
| 2108 | |
| 2109 | if (file==NULL) |
| 2110 | return UNZ_PARAMERROR; |
| 2111 | s=(unz64_s*)file; |
| 2112 | |
| 2113 | s->pos_in_central_dir = pos; |
| 2114 | s->num_file = s->gi.number_entry; /* hack */ |
| 2115 | err = unz64local_GetCurrentFileInfoInternal(file,&s->cur_file_info, |
| 2116 | &s->cur_file_info_internal, |
| 2117 | NULL,0,NULL,0,NULL,0); |
| 2118 | s->current_file_ok = (err == UNZ_OK); |
| 2119 | return err; |
| 2120 | } |
| 2121 | |
| 2122 | extern int ZEXPORT unzSetOffset (unzFile file, uLong pos) |
| 2123 | { |
no test coverage detected