/* Close a ZipFile opened with unzipOpen. If there is files inside the .Zip opened with unzipOpenCurrentFile (see later), these files MUST be closed with unzipCloseCurrentFile before call unzipClose. return UNZ_OK if there is no problem.  */
int ZEXPORT unzClose(unzFile file)
/* Close a ZipFile opened with unzipOpen. If there is files inside the .Zip opened with unzipOpenCurrentFile (see later), these files MUST be closed with unzipCloseCurrentFile before call unzipClose. return UNZ_OK if there is no problem.  */
int ZEXPORT unzClose(unzFile file)
{
	unz_s* s;
    ZIPFILE *pzf;
	if (file==NULL)
		return UNZ_PARAMERROR;
	s=(unz_s*)file;
    pzf = s->zfile;
        if (s->pfile_in_zip_read!=NULL)
                unzCloseCurrentFile(file);
    if (pzf->pfnClose != NULL)
        (*pzf->pfnClose)(pzf);
	return UNZ_OK;
}