Skip to content

Commit fde81c8

Browse files
committed
fixup! mingw: support long paths
Let's re-apply the long-paths part of FSMonitor, after v4 was merged. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent bcf4d40 commit fde81c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compat/fsmonitor/fsm-listen-win32.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,9 @@ static struct one_watch *create_watch(struct fsmonitor_daemon_state *state,
113113
DWORD share_mode =
114114
FILE_SHARE_WRITE | FILE_SHARE_READ | FILE_SHARE_DELETE;
115115
HANDLE hDir;
116-
wchar_t wpath[MAX_PATH];
116+
wchar_t wpath[MAX_LONG_PATH];
117117

118-
if (xutftowcs_path(wpath, path) < 0) {
118+
if (xutftowcs_long_path(wpath, path) < 0) {
119119
error(_("could not convert to wide characters: '%s'"), path);
120120
return NULL;
121121
}

0 commit comments

Comments
 (0)