No longer 8, there is a flag with a name now

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2657 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2003-06-18 16:26:47 +00:00
parent ab91077049
commit 0b4f2a9809

View file

@ -153,7 +153,7 @@ int NSISCALL validpathspec(char *ubuf)
int NSISCALL is_valid_instpath(char *s)
{
int ivp=0;
// if 8 is set, req is 0, which means rootdirs are not allowed.
// if CH_FLAGS_NO_ROOT_DIR is set, req is 0, which means rootdirs are not allowed.
int req=!(inst_flags&CH_FLAGS_NO_ROOT_DIR);
if (*(WORD*)s == CHAR2_TO_WORD('\\','\\')) // \\ path
{