Brendan Shanks : win32u: Use PATH_MAX for Unix paths instead of MAX_PATH (from Win32).
Module: wine Branch: master Commit: 3992a76ee98c92a274830345b9f2923bb3ca3f94 URL: https://gitlab.winehq.org/wine/wine/-/commit/3992a76ee98c92a274830345b9f2923... Author: Brendan Shanks <bshanks(a)codeweavers.com> Date: Tue Apr 2 15:07:47 2024 -0700 win32u: Use PATH_MAX for Unix paths instead of MAX_PATH (from Win32). --- dlls/win32u/freetype.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/win32u/freetype.c b/dlls/win32u/freetype.c index 701e15c110d..5da70da0f94 100644 --- a/dlls/win32u/freetype.c +++ b/dlls/win32u/freetype.c @@ -332,7 +332,7 @@ static char *find_cache_dir(void) { FSRef ref; OSErr err; - static char cached_path[MAX_PATH]; + static char cached_path[PATH_MAX]; static const char *wine = "/Wine", *fonts = "/Fonts"; if(*cached_path) return cached_path; @@ -1439,7 +1439,7 @@ static BOOL ReadFontDir(const char *dirname, BOOL external_fonts) { DIR *dir; struct dirent *dent; - char path[MAX_PATH]; + char path[PATH_MAX]; TRACE("Loading fonts from %s\n", debugstr_a(dirname));
participants (1)
-
Alexandre Julliard