From 34bdd661c97e7511d3912c4d0ed761f331ee4b34 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Mon, 1 Apr 2002 18:43:59 +0000 Subject: [PATCH] Missed an ferror(); fixed to use platform abstraction instead. --- archivers/unzip.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/archivers/unzip.c b/archivers/unzip.c index b5cb73fd..dc419cad 100644 --- a/archivers/unzip.c +++ b/archivers/unzip.c @@ -153,10 +153,10 @@ local int unzlocal_getByte(fin,pi) } else { - if (ferror(fin)) - return UNZ_ERRNO; - else + if (__PHYSFS_platformEOF(fin)) return UNZ_EOF; + else + return UNZ_ERRNO; } }