Fixed logic error in QPAK archiver.

Should haved tested for a failed seek, but was testing for success instead.
This commit is contained in:
Ryan C. Gordon 2011-02-10 16:54:09 -05:00
parent 82b8546bc9
commit 706f50be0a
1 changed files with 1 additions and 1 deletions

View File

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