Add missing arg to windows tor_listdir()

svn:r4972
This commit is contained in:
Nick Mathewson 2005-09-09 21:34:59 +00:00
parent 2f6eb10fb4
commit 09d83c564b

View File

@ -1139,7 +1139,7 @@ tor_listdir(const char *dirname)
}
result = smartlist_create();
while (1) {
smartlist_add(findData.cFileName);
smartlist_add(result, findData.cFileName);
if (!FindNextFile(handle, &findData)) {
if (GetLastError() != ERROR_NO_MORE_FILES) {
log_fn(LOG_WARN, "Error reading directory.");