diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-03-04 22:06:10 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-03-04 22:06:10 +0100 |
| commit | b573020a72b108364df42018135bb1295b3082c8 (patch) | |
| tree | 252982c6acdcb059f5f2b7bb2f4b19413e2501ee /src/main_windows.cpp | |
| parent | 5bb723bb02a803f0315f3dd734a19e75706baf06 (diff) | |
max file size setting
Diffstat (limited to 'src/main_windows.cpp')
| -rw-r--r-- | src/main_windows.cpp | 1 |
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); |
