Fixed logic bug (thanks, Sam!).

This commit is contained in:
Ryan C. Gordon 2012-06-20 20:16:11 -04:00
parent 9159717a27
commit 2a4d891ac5
1 changed files with 1 additions and 1 deletions

View File

@ -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 */