aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/opencv4/0020-fix-narrow-filesystem.diff
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/opencv4/0020-fix-narrow-filesystem.diff')
-rw-r--r--vcpkg/ports/opencv4/0020-fix-narrow-filesystem.diff13
1 files changed, 13 insertions, 0 deletions
diff --git a/vcpkg/ports/opencv4/0020-fix-narrow-filesystem.diff b/vcpkg/ports/opencv4/0020-fix-narrow-filesystem.diff
new file mode 100644
index 0000000..b359717
--- /dev/null
+++ b/vcpkg/ports/opencv4/0020-fix-narrow-filesystem.diff
@@ -0,0 +1,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;