Skip to content

Commit

Permalink
fixup! mingw: support long paths
Browse files Browse the repository at this point in the history
Let's re-apply the long-paths part of FSMonitor, after v4 was merged.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
  • Loading branch information
dscho committed Aug 5, 2021
1 parent bcf4d40 commit fde81c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compat/fsmonitor/fsm-listen-win32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit fde81c8

Please sign in to comment.