Explorar el Código

The DirHandle->funcs pointer wasn't getting set?!

Ryan C. Gordon hace 25 años
padre
commit
ae140141fc
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      archivers/dir.c

+ 2 - 0
archivers/dir.c

@@ -209,6 +209,8 @@ static DirHandle *DIR_openArchive(const char *name, int forWriting)
     if (strcmp((name + namelen) - seplen, dirsep) != 0)
     if (strcmp((name + namelen) - seplen, dirsep) != 0)
         strcat((char *) (retval->opaque), dirsep);
         strcat((char *) (retval->opaque), dirsep);
 
 
+    retval->funcs = &__PHYSFS_DirFunctions_DIR;
+
     return(retval);
     return(retval);
 } /* DIR_openArchive */
 } /* DIR_openArchive */