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:
kichik 2003-07-21 11:11:07 +00:00
parent eede510164
commit 7e6b2794cd

View file

@ -1014,7 +1014,7 @@ static BOOL CALLBACK SelProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPar
if (g_inst_header->install_types[i])
{
int j;
doCombo++;
if (i != NSIS_MAX_INST_TYPES) doCombo++;
process_string_fromtab(g_tmp,g_inst_header->install_types[i]);
j=SendMessage(hwndCombo1,CB_ADDSTRING,0,(LPARAM)ps_tmpbuf);
SendMessage(hwndCombo1,CB_SETITEMDATA,j,i);