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 @@ ...@@ -30,6 +30,7 @@
# include <pwd.h> # include <pwd.h>
#endif #endif
#include <grp.h> #include <grp.h>
#include <limits.h>
#define COBJMACROS #define COBJMACROS
#define NONAMELESSUNION #define NONAMELESSUNION
...@@ -314,7 +315,7 @@ static BOOL UNIXFS_build_subfolder_pidls(const char *path, LPITEMIDLIST **apidl, ...@@ -314,7 +315,7 @@ static BOOL UNIXFS_build_subfolder_pidls(const char *path, LPITEMIDLIST **apidl,
} }
/* Allocate space for fully qualified paths */ /* Allocate space for fully qualified paths */
pszFQPath = SHAlloc(strlen(path) + NAME_MAX); pszFQPath = SHAlloc(strlen(path) + PATH_MAX);
if (!pszFQPath) { if (!pszFQPath) {
WARN("SHAlloc failed!\n"); WARN("SHAlloc failed!\n");
return FALSE; 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