Fixed ZIP_isArchive() to report correctly if it has to check for the

end of central directory record.
This commit is contained in:
Ryan C. Gordon 2002-07-23 18:05:50 +00:00
parent 4765a364fe
commit e460c9ce9a
1 changed files with 1 additions and 1 deletions

View File

@ -524,7 +524,7 @@ static int ZIP_isArchive(const char *filename, int forWriting)
* (a self-extracting executable, etc), so we'll have to do * (a self-extracting executable, etc), so we'll have to do
* it the hard way... * it the hard way...
*/ */
retval = (zip_find_end_of_central_dir(in, NULL) == -1); retval = (zip_find_end_of_central_dir(in, NULL) != -1);
} /* if */ } /* if */
__PHYSFS_platformClose(in); __PHYSFS_platformClose(in);