From fde81c84246f9b3cb6a1532b4ea6c647f16083cb Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Thu, 5 Aug 2021 21:28:15 +0200 Subject: [PATCH] fixup! mingw: support long paths Let's re-apply the long-paths part of FSMonitor, after v4 was merged. Signed-off-by: Johannes Schindelin --- compat/fsmonitor/fsm-listen-win32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compat/fsmonitor/fsm-listen-win32.c b/compat/fsmonitor/fsm-listen-win32.c index 2431492c3a1c07..9bb92935595151 100644 --- a/compat/fsmonitor/fsm-listen-win32.c +++ b/compat/fsmonitor/fsm-listen-win32.c @@ -113,9 +113,9 @@ static struct one_watch *create_watch(struct fsmonitor_daemon_state *state, DWORD share_mode = FILE_SHARE_WRITE | FILE_SHARE_READ | FILE_SHARE_DELETE; HANDLE hDir; - wchar_t wpath[MAX_PATH]; + wchar_t wpath[MAX_LONG_PATH]; - if (xutftowcs_path(wpath, path) < 0) { + if (xutftowcs_long_path(wpath, path) < 0) { error(_("could not convert to wide characters: '%s'"), path); return NULL; }