Parcourir la source

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

Ryan C. Gordon il y a 24 ans
Parent
commit
34bdd661c9
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 3 3
      archivers/unzip.c

+ 3 - 3
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;
     }
 }