mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-30 07:51:55 +00:00
- fixed zipdir inability to update empty zip file
https://forum.zdoom.org/viewtopic.php?t=70468
This commit is contained in:
parent
4b529914ae
commit
9458861456
1 changed files with 2 additions and 0 deletions
|
@ -781,6 +781,8 @@ void write_zip(const char *zipname, dir_tree_t *trees, int update)
|
|||
if (central_dir == NULL)
|
||||
{
|
||||
fprintf(stderr, "Could not read central directory from %s. (Is it a zipfile?)\n", zipname);
|
||||
fclose(ozip);
|
||||
ozip = NULL;
|
||||
update = 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue