Nameless sections also have to be selected to be counted as required

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7313 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
anders_k 2021-09-04 01:13:22 +00:00
parent ded87462dc
commit 56331beada

View file

@ -2795,7 +2795,7 @@ retry_output:
if (PAGE_COMPLETED != PAGE_INSTFILES && np) --np; // Special page not part of count
INFO_MSG(_T("%d page%") NPRIs _T(" (%d bytes), "),np,np==1?_T(""):_T("s"),np*sizeof(page));
#endif
#define IsRequiredSection(s) ( !(s).name_ptr || (((s).flags & (SF_RO|SF_SELECTED)) == (SF_RO|SF_SELECTED)))
#define IsRequiredSection(s) ( (!(s).name_ptr && ((s).flags & SF_SELECTED)) || (((s).flags & (SF_RO|SF_SELECTED)) == (SF_RO|SF_SELECTED)))
{
int ns=build_sections.getlen()/sizeof(section), x;
section *s=(section*)build_sections.get();