C4Group: Fix FindNextEntry

The char* parametered FindNextEntry didn't pass the last found
filename to its implementation, so it always found the first file
matching the wildcard
floating-point
Nicolas Hake 2011-03-08 17:53:30 +01:00
parent 6df452c5e9
commit b332e73ba3
1 changed files with 1 additions and 1 deletions

View File

@ -247,7 +247,7 @@ public:
size_t *iSize=NULL,
bool fStartAtFilename=false)
{
StdStrBuf name;
StdStrBuf name(sFileName);
bool r = FindNextEntry(szWildCard, &name, iSize, fStartAtFilename);
if(sFileName) SCopy(name.getData(),sFileName);
return r;