Fixed logic bug (thanks, Sam!).
This commit is contained in:
parent
9159717a27
commit
2a4d891ac5
|
@ -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 */
|
||||
|
||||
|
|
Loading…
Reference in New Issue