فهرست منبع

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)
     if (lstat(filename, &statbuf) == -1)
     {
     {
-        *exists = (errno == ENOENT);
+        *exists = (errno != ENOENT);
         BAIL_MACRO(errcodeFromErrno(), 0);
         BAIL_MACRO(errcodeFromErrno(), 0);
     } /* if */
     } /* if */