Explorar o código

POSIX version of __PHYSFS_platformStat() forgot to set *exists properly.

Thanks to Frank Becker for the fix.
Ryan C. Gordon %!s(int64=15) %!d(string=hai) anos
pai
achega
b8c4942413
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/platform_posix.c

+ 2 - 0
src/platform_posix.c

@@ -404,6 +404,8 @@ int __PHYSFS_platformStat(const char *filename, int *exists, PHYSFS_Stat *st)
         BAIL_MACRO(strerror(errno), 0);
     } /* if */
 
+    *exists = 1;
+
     if (S_ISREG(statbuf.st_mode))
     {
         st->filetype = PHYSFS_FILETYPE_REGULAR;