Commit f4949b8d authored by Robert Lunnon's avatar Robert Lunnon Committed by Alexandre Julliard

Make references to NAME_MAX refer to PATH_MAX instead.

parent d62356aa
......@@ -30,6 +30,7 @@
# include <pwd.h>
#endif
#include <grp.h>
#include <limits.h>
#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;
......
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