From 56331beadac66863c081f64ae392094ed154be59 Mon Sep 17 00:00:00 2001 From: anders_k Date: Sat, 4 Sep 2021 01:13:22 +0000 Subject: [PATCH] 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 --- Source/build.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/build.cpp b/Source/build.cpp index f47fef4a..e04a6855 100644 --- a/Source/build.cpp +++ b/Source/build.cpp @@ -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();