Missed an ferror(); fixed to use platform abstraction instead.
authorRyan C. Gordon <icculus@icculus.org>
Mon, 01 Apr 2002 18:43:59 +0000
changeset 148 5b95e3fa52d3
parent 147 5e1eda65ceb3
child 149 1a630e60e12b
Missed an ferror(); fixed to use platform abstraction instead.
archivers/unzip.c
--- 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;
     }
 }