FileLister: fixed compiler errors in win32. accept all files given by user.

This commit is contained in:
Daniel Marjamäki 2010-11-09 19:32:11 +01:00
parent 14bf9fbbdb
commit 2102b9598e
1 changed files with 3 additions and 3 deletions

View File

@ -168,16 +168,16 @@ void FileListerWin32::recursiveAddFiles(std::vector<std::string> &filenames, con
// File
// If recursive is not used, accept all files given by user
if (!recursive || FileLister::acceptFile(ansiFfd))
if (sameFileName(path,ansiFfd) || FileLister::acceptFile(ansiFfd))
{
const std::string nativename = Path::fromNativeSeparators(fname.str());
filenames.push_back(nativename);
}
}
else if (recursive)
else
{
// Directory
getFileLister()->recursiveAddFiles(filenames, fname.str().c_str(), recursive);
getFileLister()->recursiveAddFiles(filenames, fname.str());
}
#if defined(UNICODE)
delete [] ansiFfd;