diff --git a/compat/mingw.c b/compat/mingw.c index b5bc7c91ab..ceef246e19 100644 --- a/compat/mingw.c +++ b/compat/mingw.c @@ -374,9 +374,7 @@ int mingw_mkdir(const char *path, int mode) { int ret; wchar_t wpath[MAX_LONG_PATH]; - /* CreateDirectoryW path limit is 248 (MAX_PATH - 8.3 file name) */ - if (xutftowcs_path_ex(wpath, path, MAX_LONG_PATH, -1, 248, - core_long_paths) < 0) + if (xutftowcs_long_path(wpath, path) < 0) return -1; ret = _wmkdir(wpath);