This returns -1 on error, not zero. :/

This commit is contained in:
Ryan C. Gordon 2014-02-07 16:23:12 -05:00
parent 016394067c
commit 2091eccad3
1 changed files with 1 additions and 1 deletions

View File

@ -429,7 +429,7 @@ static PHYSFS_sint64 zip_find_end_of_central_dir(PHYSFS_Io *io, PHYSFS_sint64 *l
int found = 0;
filelen = io->length(io);
BAIL_IF_MACRO(filelen == -1, ERRPASS, 0);
BAIL_IF_MACRO(filelen == -1, ERRPASS, -1);
/*
* Jump to the end of the file and start reading backwards.