diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/opencv4/0020-fix-narrow-filesystem.diff | |
Diffstat (limited to 'vcpkg/ports/opencv4/0020-fix-narrow-filesystem.diff')
| -rw-r--r-- | vcpkg/ports/opencv4/0020-fix-narrow-filesystem.diff | 13 |
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; |