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:
parent
f170a4d2f8
commit
3d1c70f375
7 changed files with 93 additions and 79 deletions
|
@ -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++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue