Don't show installation type combo box when there are no InstTypes defined
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2760 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
eede510164
commit
7e6b2794cd
1 changed files with 1 additions and 1 deletions
|
@ -1014,7 +1014,7 @@ static BOOL CALLBACK SelProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPar
|
||||||
if (g_inst_header->install_types[i])
|
if (g_inst_header->install_types[i])
|
||||||
{
|
{
|
||||||
int j;
|
int j;
|
||||||
doCombo++;
|
if (i != NSIS_MAX_INST_TYPES) doCombo++;
|
||||||
process_string_fromtab(g_tmp,g_inst_header->install_types[i]);
|
process_string_fromtab(g_tmp,g_inst_header->install_types[i]);
|
||||||
j=SendMessage(hwndCombo1,CB_ADDSTRING,0,(LPARAM)ps_tmpbuf);
|
j=SendMessage(hwndCombo1,CB_ADDSTRING,0,(LPARAM)ps_tmpbuf);
|
||||||
SendMessage(hwndCombo1,CB_SETITEMDATA,j,i);
|
SendMessage(hwndCombo1,CB_SETITEMDATA,j,i);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue