Fixed logic error in QPAK archiver.
Should haved tested for a failed seek, but was testing for success instead.
This commit is contained in:
parent
82b8546bc9
commit
706f50be0a
|
@ -261,7 +261,7 @@ static void *QPAK_openArchive(PHYSFS_Io *io, const char *name, int forWriting)
|
|||
BAIL_IF_MACRO((count % 64) != 0, ERR_CORRUPTED, NULL);
|
||||
count /= 64;
|
||||
|
||||
BAIL_IF_MACRO(io->seek(io, pos), NULL, NULL);
|
||||
BAIL_IF_MACRO(!io->seek(io, pos), NULL, NULL);
|
||||
|
||||
info = (QPAKinfo *) allocator.Malloc(sizeof (QPAKinfo));
|
||||
BAIL_IF_MACRO(info == NULL, ERR_OUT_OF_MEMORY, NULL);
|
||||
|
|
Loading…
Reference in New Issue