From 1f1042a645c08836bc20d75577b6112675c6d40e Mon Sep 17 00:00:00 2001 From: kichik Date: Fri, 2 Aug 2002 15:29:22 +0000 Subject: [PATCH] Fixed a bug with ChangeUI and no branding image git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@629 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/DialogTemplate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/DialogTemplate.cpp b/Source/DialogTemplate.cpp index a4d7722d..c9bd257a 100644 --- a/Source/DialogTemplate.cpp +++ b/Source/DialogTemplate.cpp @@ -227,7 +227,7 @@ DialogItemTemplate* CDialogTemplate::GetItem(WORD wId) { // Returns info about the item with the indexed i DialogItemTemplate* CDialogTemplate::GetItemByIdx(DWORD i) { - if (i > m_vItems.size()) return 0; + if (i >= m_vItems.size()) return 0; return m_vItems[i]; }