Commit 3992a76e authored by Brendan Shanks's avatar Brendan Shanks Committed by Alexandre Julliard

win32u: Use PATH_MAX for Unix paths instead of MAX_PATH (from Win32).

parent 0feed009
...@@ -332,7 +332,7 @@ static char *find_cache_dir(void) ...@@ -332,7 +332,7 @@ static char *find_cache_dir(void)
{ {
FSRef ref; FSRef ref;
OSErr err; OSErr err;
static char cached_path[MAX_PATH]; static char cached_path[PATH_MAX];
static const char *wine = "/Wine", *fonts = "/Fonts"; static const char *wine = "/Wine", *fonts = "/Fonts";
if(*cached_path) return cached_path; if(*cached_path) return cached_path;
...@@ -1439,7 +1439,7 @@ static BOOL ReadFontDir(const char *dirname, BOOL external_fonts) ...@@ -1439,7 +1439,7 @@ static BOOL ReadFontDir(const char *dirname, BOOL external_fonts)
{ {
DIR *dir; DIR *dir;
struct dirent *dent; struct dirent *dent;
char path[MAX_PATH]; char path[PATH_MAX];
TRACE("Loading fonts from %s\n", debugstr_a(dirname)); TRACE("Loading fonts from %s\n", debugstr_a(dirname));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment