Fixed incorrect logic ("!x != 5" instead of "x != 5").

Thanks to Xian Nox for pointing this out!
This commit is contained in:
Ryan C. Gordon 2015-06-16 10:46:56 -04:00
parent 6cafcc4bc7
commit fb31167e11
2 changed files with 4 additions and 1 deletions

View File

@ -145,6 +145,9 @@ Bug fixes:
Bug fixes:
Michael Bacon
Bug fixes:
Xian Nox
pkg-config support:
Jonas Kulla

View File

@ -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);