Skip to content

Commit

Permalink
Fixed ZIP_isArchive() to report correctly if it has to check for the
Browse files Browse the repository at this point in the history
end of central directory record.
  • Loading branch information
icculus committed Jul 23, 2002
1 parent 4765a36 commit e460c9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion archivers/zip.c
Expand Up @@ -524,7 +524,7 @@ static int ZIP_isArchive(const char *filename, int forWriting)
* (a self-extracting executable, etc), so we'll have to do
* 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 */

__PHYSFS_platformClose(in);
Expand Down

0 comments on commit e460c9c

Please sign in to comment.