Fixed incorrect logic ("!x != 5" instead of "x != 5").
Thanks to Xian Nox for pointing this out!
This commit is contained in:
parent
6cafcc4bc7
commit
fb31167e11
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue