summaryrefslogtreecommitdiff
path: root/src/windows
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrikboy@gmail.com>2024-03-13 22:43:19 +0100
committerAldrik Ramaekers <aldrikboy@gmail.com>2024-03-13 22:43:19 +0100
commitc255e8882448c2f1349f69a3b7f68f7778923e56 (patch)
treeed710b19e1ea6617c1060d21aaeeb1f22c7f3fcb /src/windows
parent470eeff5bd98207c463aeec308de6046bf3f6ac9 (diff)
csv file import
Diffstat (limited to 'src/windows')
-rw-r--r--src/windows/main_windows.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/windows/main_windows.cpp b/src/windows/main_windows.cpp
index 00a8bc2..948226f 100644
--- a/src/windows/main_windows.cpp
+++ b/src/windows/main_windows.cpp
@@ -14,6 +14,7 @@
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
+#define _CRT_SECURE_NO_WARNINGS
#include <pathcch.h>
#include <windows.h>
#include <Shlobj.h>
@@ -424,8 +425,7 @@ void ts_platform_list_files_block(ts_search_result* result, wchar_t* start_dir)
ts_mutex_lock(&result->files.mutex);
ts_array_push_size(&result->files, &f, sizeof(ts_found_file*));
- ts_mutex_unlock(&result->files.mutex);
-
+ ts_mutex_unlock(&result->files.mutex);
}
}
while (FindNextFile(handle, (LPWIN32_FIND_DATAW)&file_info) != 0);