Skip to content

Commit 60b34f7

Browse files
committed
fixup! mingw: support long paths
In preparation for merging FSMonitor v4, let's revert the FSMonitor part of this patch. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent d9811c0 commit 60b34f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compat/fsmonitor/fsmonitor-fs-listen-win32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ static struct one_watch *create_watch(struct fsmonitor_daemon_state *state,
111111
DWORD share_mode =
112112
FILE_SHARE_WRITE | FILE_SHARE_READ | FILE_SHARE_DELETE;
113113
HANDLE hDir;
114-
wchar_t wpath[MAX_LONG_PATH];
114+
wchar_t wpath[MAX_PATH];
115115

116116
if (xutftowcs_long_path(wpath, path) < 0) {
117117
error(_("could not convert to wide characters: '%s'"), path);

0 commit comments

Comments
 (0)