Преглед изворни кода

Add missing arg to windows tor_listdir()

svn:r4972
Nick Mathewson пре 20 година
родитељ
комит
09d83c564b
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/common/util.c

+ 1 - 1
src/common/util.c

@@ -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.");