mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 20:33:31 +01:00
Add missing arg to windows tor_listdir()
svn:r4972
This commit is contained in:
parent
2f6eb10fb4
commit
09d83c564b
@ -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.");
|
||||
|
Loading…
Reference in New Issue
Block a user