Fixed logic bug (thanks, Sam!).
authorRyan C. Gordon <icculus@icculus.org>
Wed, 20 Jun 2012 20:16:11 -0400
changeset 1290 a47c773cc5ee
parent 1289 5e267ff5efea
child 1291 854cdfefdf12
Fixed logic bug (thanks, Sam!).
src/platform_posix.c
--- a/src/platform_posix.c	Thu Jun 07 10:42:19 2012 -0400
+++ b/src/platform_posix.c	Wed Jun 20 20:16:11 2012 -0400
@@ -349,7 +349,7 @@
 
     if (lstat(filename, &statbuf) == -1)
     {
-        *exists = (errno == ENOENT);
+        *exists = (errno != ENOENT);
         BAIL_MACRO(errcodeFromErrno(), 0);
     } /* if */