made ExpandEnvStrings set the error flag as the documentation says it should

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3953 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2005-04-08 14:27:55 +00:00
parent 033500e72a
commit 106939c165

View file

@ -599,7 +599,11 @@ static int NSISCALL ExecuteEntry(entry *entry_)
} }
else else
{ {
ExpandEnvironmentStrings(buf0,p,NSIS_MAX_STRLEN); if (!ExpandEnvironmentStrings(buf0,p,NSIS_MAX_STRLEN))
{
exec_error++;
*p=0;
}
} }
p[NSIS_MAX_STRLEN-1]=0; p[NSIS_MAX_STRLEN-1]=0;
} }