Skip to content

Commit 7b052e6

Browse files
committed
fixup! mingw: ignore HOMEDRIVE/HOMEPATH if it points to Windows' system directory
The long-paths support comes later in Git for Windows' branch thicket... Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 27f4215 commit 7b052e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compat/mingw.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2612,9 +2612,9 @@ static size_t append_system_bin_dirs(char *path, size_t size)
26122612

26132613
static int is_system32_path(const char *path)
26142614
{
2615-
WCHAR system32[MAX_LONG_PATH], wpath[MAX_LONG_PATH];
2615+
WCHAR system32[MAX_PATH], wpath[MAX_PATH];
26162616

2617-
if (xutftowcs_long_path(wpath, path) < 0 ||
2617+
if (xutftowcs_path(wpath, path) < 0 ||
26182618
!GetSystemDirectoryW(system32, ARRAY_SIZE(system32)) ||
26192619
_wcsicmp(system32, wpath))
26202620
return 0;

0 commit comments

Comments
 (0)