diff --git a/src/platform_posix.c b/src/platform_posix.c index c72d320..b358fdf 100644 --- a/src/platform_posix.c +++ b/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 */