Skip to content

Commit

Permalink
fixup! mingw: support long paths
Browse files Browse the repository at this point in the history
This change was inadvertently kept in a patch that precedes the
`core.longPaths` support.

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

0 comments on commit 8735530

Please sign in to comment.