#1787648: ${__SECTION__} is correctly defined in hidden section

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6107 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
wizou 2010-06-16 16:01:40 +00:00
parent 1421a3e315
commit ab8f90f99e
2 changed files with 10 additions and 14 deletions

View file

@ -3457,14 +3457,7 @@ int CEXEBuild::doCommand(int which_token, LineParser &line)
int ret;
if (line.gettoken_str(a)[0]==_T('-'))
{
if (!_tcsnicmp(line.gettoken_str(a)+1,_T("un."),3))
ret=add_section(_T("un."),line.gettoken_str(a+1));
else
ret=add_section(_T(""),line.gettoken_str(a+1));
}
else ret=add_section(line.gettoken_str(a),line.gettoken_str(a+1));
ret=add_section(line.gettoken_str(a),line.gettoken_str(a+1));
if (ret != PS_OK) return ret;
if (unselected)
@ -3522,7 +3515,7 @@ int CEXEBuild::doCommand(int which_token, LineParser &line)
ex = 1;
a++;
}
wsprintf(buf,_T("-%s"),line.gettoken_str(a));
wsprintf(buf,_T("\x1F%s"),line.gettoken_str(a));
if (which_token == TOK_SECTIONGROUP || which_token == TOK_SUBSECTION)
{
TCHAR *s = line.gettoken_str(a);