From 2e19d22d39d07fef95dc6b350f2543278b64bdaa Mon Sep 17 00:00:00 2001 From: kichik Date: Wed, 26 Feb 2003 15:27:39 +0000 Subject: [PATCH] Optimizations git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2215 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/exehead/Ui.c | 8 ++------ Source/exehead/exec.c | 7 ------- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/Source/exehead/Ui.c b/Source/exehead/Ui.c index 73daf9fd..c58726ee 100644 --- a/Source/exehead/Ui.c +++ b/Source/exehead/Ui.c @@ -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 { diff --git a/Source/exehead/exec.c b/Source/exehead/exec.c index 916689d4..11017e58 100644 --- a/Source/exehead/exec.c +++ b/Source/exehead/exec.c @@ -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)