Now considers the first section too when deciding if the components page should be shown. Also doesn't show the components page if all sections are RO.

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1229 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2002-09-30 17:13:28 +00:00
parent dd4d652877
commit c610060227

View file

@ -303,10 +303,10 @@ void CEXEBuild::FillDefaultsIfNeeded(StringTable *table, NLF *nlf/*=0*/) {
{
int x;
int iscp=0;
for (x = 1; x < build_header.num_sections&&!iscp; x ++)
for (x = 0; x < build_header.num_sections&&!iscp; x ++)
{
char c=build_strlist.get()[((section*)build_sections.get())[x].name_ptr];
if (c && c != '-') iscp++;
if (c && c != '-' && !(((section*)build_sections.get())[x].default_state&DFS_RO)) iscp++;
}
if (iscp)
{