Fixed incorrect page count in compiler statistics

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6417 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
anders_k 2013-12-08 15:41:47 +00:00
parent be6c7e6a1d
commit c16bc083b5
2 changed files with 4 additions and 0 deletions

View file

@ -28,6 +28,8 @@ Released on ?
\b Fixed MakeNSISW default pushbutton and tab order
\b Fixed incorrect page count in compiler statistics
\H{v3.0a1} 3.0 Alpha 1
Released on July 14th, 2013

View file

@ -2716,6 +2716,7 @@ int CEXEBuild::write_output(void)
INFO_MSG(_T("Install: "));
#ifdef NSIS_CONFIG_VISIBLE_SUPPORT
int np=build_header.blocks[NB_PAGES].num;
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
{
@ -2745,6 +2746,7 @@ int CEXEBuild::write_output(void)
INFO_MSG(_T("Uninstall: "));
#ifdef NSIS_CONFIG_VISIBLE_SUPPORT
np=build_uninst.blocks[NB_PAGES].num;
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"),ubuild_pages.getlen());
#endif
{