From 8735530946cced809cc6cc4c2ca3b078cdb3dfc8 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Mon, 23 Aug 2021 15:24:59 +0200 Subject: [PATCH] fixup! mingw: support long paths This change was inadvertently kept in a patch that precedes the `core.longPaths` support. Signed-off-by: Johannes Schindelin --- compat/mingw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compat/mingw.c b/compat/mingw.c index ceb499f55b..cd046da97a 100644 --- a/compat/mingw.c +++ b/compat/mingw.c @@ -3316,9 +3316,9 @@ static size_t append_system_bin_dirs(char *path, size_t size) static int is_system32_path(const char *path) { - WCHAR system32[MAX_PATH], wpath[MAX_PATH]; + WCHAR system32[MAX_LONG_PATH], wpath[MAX_LONG_PATH]; - if (xutftowcs_path(wpath, path) < 0 || + if (xutftowcs_long_path(wpath, path) < 0 || !GetSystemDirectoryW(system32, ARRAY_SIZE(system32)) || _wcsicmp(system32, wpath)) return 0;