From 2a4d891ac516b5bfe4e49d940e5d338764a97cbc Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Wed, 20 Jun 2012 20:16:11 -0400 Subject: [PATCH] Fixed logic bug (thanks, Sam!). --- src/platform_posix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform_posix.c b/src/platform_posix.c index c72d320f..b358fdf8 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 */