small bug fixes

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@646 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2002-08-05 13:52:27 +00:00
parent 31ad4513e9
commit 3e5c7a1299
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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));
}