| 1 |
diff --git a/modules/core/src/utils/filesystem.cpp b/modules/core/src/utils/filesystem.cpp |
| 2 |
index 0a44d48..2d609fd 100644 |
| 3 |
--- a/modules/core/src/utils/filesystem.cpp |
| 4 |
+++ b/modules/core/src/utils/filesystem.cpp |
| 5 |
@@ -439,7 +439,7 @@ cv::String getCacheDirectory(const char* sub_directory_name, const char* configu |
| 6 |
cv::String default_cache_path; |
| 7 |
#ifdef _WIN32 |
| 8 |
char tmp_path_buf[MAX_PATH+1] = {0}; |
| 9 |
- DWORD res = GetTempPath(MAX_PATH, tmp_path_buf); |
| 10 |
+ DWORD res = GetTempPathA(MAX_PATH, tmp_path_buf); |
| 11 |
if (res > 0 && res <= MAX_PATH) |
| 12 |
{ |
| 13 |
default_cache_path = tmp_path_buf; |