From 3e5c7a1299a94b7ce1113cbef5d7abcb3cd9668b Mon Sep 17 00:00:00 2001 From: kichik Date: Mon, 5 Aug 2002 13:52:27 +0000 Subject: [PATCH] small bug fixes git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@646 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/lang.cpp | 2 +- Source/script.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/lang.cpp b/Source/lang.cpp index 886d3b8c..f25f5e3a 100644 --- a/Source/lang.cpp +++ b/Source/lang.cpp @@ -375,7 +375,7 @@ void CEXEBuild::FillDefaultsIfNeeded(StringTable *table, NLF *nlf/*=0*/) { #ifdef NSIS_SUPPORT_FILE if (m_uninst_fileused && table->ucommon.fileerrtext<0) { - table->ucommon.fileerrtext=add_string_uninst(build_strlist.get() + table->common.fileerrtext,0); + table->ucommon.fileerrtext=add_string_uninst(build_strlist.get() + table->common.fileerrtext); } #endif diff --git a/Source/script.cpp b/Source/script.cpp index 74c44e8f..58993232 100644 --- a/Source/script.cpp +++ b/Source/script.cpp @@ -1621,7 +1621,7 @@ int CEXEBuild::doCommand(int which_token, LineParser &line, FILE *fp, const char if (line.getnumtokens()!=a+2) PRINTHELP(); int s; int w=line.gettoken_int(a,&s); - if (!s || w < 0 || w > 2) PRINTHELP() + if (!s || w < 0 || w > 4) PRINTHELP() SetString(line.gettoken_str(a+1),NLF_SUBCAPTION_LICENSE+w,1,lang); SCRIPT_MSG("SubCaption: page:%d, text=%s\n",w,line.gettoken_str(a+1)); }