Fixed ZIP_isArchive() to report correctly if it has to check for the
authorRyan C. Gordon <icculus@icculus.org>
Tue, 23 Jul 2002 18:05:50 +0000
changeset 369 7c1ede6201cc
parent 368 29a96046cf23
child 370 da631e118455
Fixed ZIP_isArchive() to report correctly if it has to check for the end of central directory record.
archivers/zip.c
--- a/archivers/zip.c	Tue Jul 23 17:52:56 2002 +0000
+++ b/archivers/zip.c	Tue Jul 23 18:05:50 2002 +0000
@@ -524,7 +524,7 @@
          *  (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);