archivers/unzip.c
changeset 148 5b95e3fa52d3
parent 143 337505f94c10
child 176 4a996749e39d
--- a/archivers/unzip.c	Sat Mar 30 17:26:03 2002 +0000
+++ b/archivers/unzip.c	Mon Apr 01 18:43:59 2002 +0000
@@ -153,10 +153,10 @@
     }
     else
     {
-        if (ferror(fin)) 
+        if (__PHYSFS_platformEOF(fin)) 
+            return UNZ_EOF;
+        else
             return UNZ_ERRNO;
-        else
-            return UNZ_EOF;
     }
 }