summaryrefslogtreecommitdiff
path: root/src/main_windows.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main_windows.cpp')
-rw-r--r--src/main_windows.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main_windows.cpp b/src/main_windows.cpp
index 45963d1..2a9d3a0 100644
--- a/src/main_windows.cpp
+++ b/src/main_windows.cpp
@@ -328,6 +328,7 @@ void ts_platform_list_files_block(ts_search_result* result, wchar_t* start_dir)
ts_found_file* f = (ts_found_file*)ts_memory_bucket_reserve(&result->memory, sizeof(ts_found_file));
f->path = (utf8_int8_t*)ts_memory_bucket_reserve(&result->memory, MAX_INPUT_LENGTH);
f->match_count = 0;
+ f->error = 0;
WideCharToMultiByte(CP_UTF8,0,complete_file_path,-1,(LPSTR)f->path,MAX_INPUT_LENGTH, NULL, NULL);
ts_mutex_lock(&result->files.mutex);