Fixed incorrect logic ("!x != 5" instead of "x != 5").
authorRyan C. Gordon <icculus@icculus.org>
Tue, 16 Jun 2015 10:46:56 -0400
changeset 1361 993f64ad0b05
parent 1360 aa4787e50cc9
child 1362 10eeee30148a
Fixed incorrect logic ("!x != 5" instead of "x != 5"). Thanks to Xian Nox for pointing this out!
docs/CREDITS.txt
src/archiver_iso9660.c
--- a/docs/CREDITS.txt	Sun Apr 19 23:28:14 2015 -0400
+++ b/docs/CREDITS.txt	Tue Jun 16 10:46:56 2015 -0400
@@ -145,6 +145,9 @@
 Bug fixes:
     Michael Bacon
 
+Bug fixes:
+    Xian Nox
+
 pkg-config support:
     Jonas Kulla
 
--- a/src/archiver_iso9660.c	Sun Apr 19 23:28:14 2015 -0400
+++ b/src/archiver_iso9660.c	Tue Jun 16 10:46:56 2015 -0400
@@ -553,7 +553,7 @@
 
     /* Skip system area to magic number in Volume descriptor */
     BAIL_IF_MACRO(!io->seek(io, 32769), ERRPASS, NULL);
-    BAIL_IF_MACRO(!io->read(io, magicnumber, 5) != 5, ERRPASS, NULL);
+    BAIL_IF_MACRO(io->read(io, magicnumber, 5) != 5, ERRPASS, NULL);
     if (memcmp(magicnumber, "CD001", 6) != 0)
         BAIL_MACRO(PHYSFS_ERR_UNSUPPORTED, NULL);