Skip to content

Commit

Permalink
Fixed logic bug (thanks, Sam!).
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jun 21, 2012
1 parent 9159717 commit 2a4d891
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform_posix.c
Expand Up @@ -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 */

Expand Down

0 comments on commit 2a4d891

Please sign in to comment.