git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4276 fc73d0e0-1445-4013-8a0c-d673dee63da5

This commit is contained in:
Spoike 2013-03-31 04:53:10 +00:00
parent b5240d6335
commit fe069802af

View file

@ -747,7 +747,7 @@ int main(int argc, char *argv[])
int Sys_EnumerateFiles (const char *gpath, const char *match, int (*func)(const char *, int, void *), void *parm)
int Sys_EnumerateFiles (const char *gpath, const char *match, int (*func)(const char *, int, void *, void *), void *parm, void *sparm)
{
DIR *dir;
char apath[MAX_OSPATH];
@ -805,7 +805,7 @@ int Sys_EnumerateFiles (const char *gpath, const char *match, int (*func)(const
{
Q_snprintfz(file, sizeof(file), "%s%s%s", apath, ent->d_name, S_ISDIR(st.st_mode)?"/":"");
if (!func(file, st.st_size, parm))
if (!func(file, st.st_size, parm, sparm))
{
closedir(dir);
return false;