Line 157... |
Line 157... |
157 |
/* is it a "link file"? skip it - link files are no longer supported */
|
157 |
/* is it a "link file"? skip it - link files are no longer supported */
|
158 |
if (strstr(curzipnode->filename, "links\\") == curzipnode->filename) {
|
158 |
if (strstr(curzipnode->filename, "links\\") == curzipnode->filename) {
|
159 |
curzipnode->filename[0] = 0; /* in fact, I just mark the file as 'empty' on the filename - see later below */
|
159 |
curzipnode->filename[0] = 0; /* in fact, I just mark the file as 'empty' on the filename - see later below */
|
160 |
}
|
160 |
}
|
161 |
|
161 |
|
162 |
/* is it the appinfo file? remember it and keep it separate from the list for now */
|
162 |
/* is it the appinfo file? detach it from the list for now */
|
163 |
if (strcmp(curzipnode->filename, appinfofile) == 0) {
|
163 |
if (strcmp(curzipnode->filename, appinfofile) == 0) {
|
164 |
appinfoptr = curzipnode;
|
164 |
appinfoptr = curzipnode;
|
165 |
curzipnode = curzipnode->nextfile;
|
165 |
curzipnode = curzipnode->nextfile;
|
- |
|
166 |
if (prevzipnode == NULL) {
|
- |
|
167 |
ziplinkedlist = curzipnode;
|
- |
|
168 |
} else {
|
166 |
if (prevzipnode != NULL) prevzipnode->nextfile = curzipnode;
|
169 |
prevzipnode->nextfile = curzipnode;
|
- |
|
170 |
}
|
167 |
continue;
|
171 |
continue;
|
168 |
}
|
172 |
}
|
169 |
|
173 |
|
170 |
if (curzipnode->filename[0] == 0) { /* ignore empty filenames (maybe it was empty originally, or has been emptied because it's a dropped source or link) */
|
174 |
if (curzipnode->filename[0] == 0) { /* ignore empty filenames (maybe it was empty originally, or has been emptied because it's a dropped source or link) */
|
171 |
if (prevzipnode == NULL) { /* take the item out of the list */
|
175 |
if (prevzipnode == NULL) { /* take the item out of the list */
|