From e460c9ce9a8e38e49475c054a194e32bc390eae2 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Tue, 23 Jul 2002 18:05:50 +0000 Subject: [PATCH] Fixed ZIP_isArchive() to report correctly if it has to check for the end of central directory record. --- archivers/zip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archivers/zip.c b/archivers/zip.c index 26b3b61d..0b6a6b60 100644 --- a/archivers/zip.c +++ b/archivers/zip.c @@ -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);