Преглед изворни кода

Fixed logic bug (thanks, Sam!).

Ryan C. Gordon пре 13 година
родитељ
комит
2a4d891ac5
1 измењених фајлова са 1 додато и 1 уклоњено
  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 */