From 2091eccad3e8af7073ad789b4fb9d8d255ccbfa3 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Fri, 7 Feb 2014 16:23:12 -0500 Subject: [PATCH] This returns -1 on error, not zero. :/ --- src/archiver_zip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/archiver_zip.c b/src/archiver_zip.c index c8fe5bc..b135a61 100644 --- a/src/archiver_zip.c +++ b/src/archiver_zip.c @@ -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.