From f4949b8d809faab8aff7e0d17b6ba02fd4321284 Mon Sep 17 00:00:00 2001 From: Robert Lunnon Date: Sat, 7 May 2005 14:50:00 +0000 Subject: [PATCH] Make references to NAME_MAX refer to PATH_MAX instead. --- dlls/shell32/shfldr_unixfs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/shell32/shfldr_unixfs.c b/dlls/shell32/shfldr_unixfs.c index 3cd69606f1b..b9906d8ed61 100644 --- a/dlls/shell32/shfldr_unixfs.c +++ b/dlls/shell32/shfldr_unixfs.c @@ -30,6 +30,7 @@ # include #endif #include +#include #define COBJMACROS #define NONAMELESSUNION @@ -314,7 +315,7 @@ static BOOL UNIXFS_build_subfolder_pidls(const char *path, LPITEMIDLIST **apidl, } /* Allocate space for fully qualified paths */ - pszFQPath = SHAlloc(strlen(path) + NAME_MAX); + pszFQPath = SHAlloc(strlen(path) + PATH_MAX); if (!pszFQPath) { WARN("SHAlloc failed!\n"); return FALSE;