Browse Source

Missed an ferror(); fixed to use platform abstraction instead.

Ryan C. Gordon 24 years ago
parent
commit
34bdd661c9
1 changed files with 3 additions and 3 deletions
  1. 3 3
      archivers/unzip.c

+ 3 - 3
archivers/unzip.c

@@ -153,10 +153,10 @@ local int unzlocal_getByte(fin,pi)
     }
     }
     else
     else
     {
     {
-        if (ferror(fin)) 
-            return UNZ_ERRNO;
-        else
+        if (__PHYSFS_platformEOF(fin)) 
             return UNZ_EOF;
             return UNZ_EOF;
+        else
+            return UNZ_ERRNO;
     }
     }
 }
 }