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