getFilesInDir: Actually count the number of files.

This commit is contained in:
Henrik Rydgård committed 2013-12-13 16:13:29 +01:00
1 parent da2b26299d
commit 0909dcbbf5
1 file changed
+1
+1
View File
@@ -318,6 +318,7 @@ size_t getFilesInDir(const char *directory, std::vector<FileInfo> *files, const
if (files)
files->push_back(info);
foundEntries++;
#ifdef _WIN32
} while (FindNextFile(hFind, &ffd) != 0);
FindClose(hFind);