Explorar o código

Fixed logic bug (thanks, Sam!).

Ryan C. Gordon %!s(int64=13) %!d(string=hai) anos
pai
achega
2a4d891ac5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/platform_posix.c

+ 1 - 1
src/platform_posix.c

@@ -349,7 +349,7 @@ int __PHYSFS_platformStat(const char *filename, int *exists, PHYSFS_Stat *st)
 
     if (lstat(filename, &statbuf) == -1)
     {
-        *exists = (errno == ENOENT);
+        *exists = (errno != ENOENT);
         BAIL_MACRO(errcodeFromErrno(), 0);
     } /* if */