Skip to content
Permalink
Browse files
Fixed incorrect logic ("!x != 5" instead of "x != 5").
Thanks to Xian Nox for pointing this out!
  • Loading branch information
icculus committed Jun 16, 2015
1 parent 6cafcc4 commit fb31167e1135b046527408d6df6b188425f731f6
Showing with 4 additions and 1 deletion.
  1. +3 −0 docs/CREDITS.txt
  2. +1 −1 src/archiver_iso9660.c
@@ -145,6 +145,9 @@ Bug fixes:
Bug fixes:
Michael Bacon

Bug fixes:
Xian Nox

pkg-config support:
Jonas Kulla

@@ -553,7 +553,7 @@ static void *ISO9660_openArchive(PHYSFS_Io *io, const char *filename, int forWri

/* 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);

0 comments on commit fb31167

Please sign in to comment.