From 7e6b2794cd15edaae47dd2822ea23a8953cdbf40 Mon Sep 17 00:00:00 2001 From: kichik Date: Mon, 21 Jul 2003 11:11:07 +0000 Subject: [PATCH] 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 --- Source/exehead/Ui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/exehead/Ui.c b/Source/exehead/Ui.c index e36e572e..75501de2 100644 --- a/Source/exehead/Ui.c +++ b/Source/exehead/Ui.c @@ -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);