Make references to NAME_MAX refer to PATH_MAX instead.
This commit is contained in:
parent
d62356aa1e
commit
f4949b8d80
@ -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,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* 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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user