94 bytes saved. LangString should now work with sub-sections too.

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1270 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2002-10-02 15:01:06 +00:00
parent f170a4d2f8
commit 3d1c70f375
7 changed files with 93 additions and 79 deletions

View file

@ -1511,15 +1511,15 @@ static int NSISCALL ExecuteEntry(entry *entry_)
}
else if (parm1==2) // set flags
{
g_inst_section[x].default_state=process_string_fromparm_toint(2);
g_inst_section[x].flags=process_string_fromparm_toint(2);
if (g_SectionHack)
{
SendMessage(g_SectionHack,WM_USER+0x18,x,(LPARAM)!!(g_inst_section[x].default_state&DFS_SET));
SendMessage(g_SectionHack,WM_USER+0x18,x,(LPARAM)!!(g_inst_section[x].flags&SF_SELECTED));
}
}
else // get flags
{
myitoa(var2,g_inst_section[x].default_state);
myitoa(var2,g_inst_section[x].flags);
}
}
else exec_errorflag++;