Optimizations
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2215 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
8ae1cdb368
commit
2e19d22d39
2 changed files with 2 additions and 13 deletions
|
@ -1071,19 +1071,15 @@ static BOOL CALLBACK SelProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPar
|
|||
{
|
||||
int x=wParam;
|
||||
int ns=lParam;
|
||||
TVITEM tv;
|
||||
|
||||
if (g_inst_section[x].name_ptr && ns >= 0)
|
||||
if (tv.hItem=hTreeItems[x])
|
||||
{
|
||||
TVITEM tv;
|
||||
tv.hItem=hTreeItems[x];
|
||||
tv.mask=TVIF_TEXT;
|
||||
process_string_fromtab(0,ns);
|
||||
tv.pszText=ps_tmpbuf;
|
||||
TreeView_SetItem(hwndTree1,&tv);
|
||||
}
|
||||
uMsg = WM_USER+0x18;
|
||||
wParam = x;
|
||||
lParam = (LPARAM)(g_inst_section[x].flags&SF_SELECTED);
|
||||
}
|
||||
if (uMsg == WM_USER+0x18) // select
|
||||
{
|
||||
|
|
|
@ -1499,13 +1499,6 @@ static int NSISCALL ExecuteEntry(entry *entry_)
|
|||
int x=process_string_fromparm_toint(0);
|
||||
if (g_inst_section && x >= 0 && x < g_inst_header->num_sections)
|
||||
{
|
||||
int z=0;
|
||||
if (g_SectionHack)
|
||||
{
|
||||
int a;
|
||||
for (a = 0; a < x; a ++) if (g_inst_section[a].name_ptr) z++;
|
||||
}
|
||||
|
||||
if (parm1==0) //set text
|
||||
{
|
||||
if (g_SectionHack)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue