Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 fb31167
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions docs/CREDITS.txt
Expand Up @@ -145,6 +145,9 @@ Bug fixes:
Bug fixes:
Michael Bacon

Bug fixes:
Xian Nox

pkg-config support:
Jonas Kulla

Expand Down
2 changes: 1 addition & 1 deletion src/archiver_iso9660.c
Expand Up @@ -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);

Expand Down

0 comments on commit fb31167

Please sign in to comment.