https://git.reactos.org/?p=reactos.git;a=commitdiff;h=1668527acf67a1f0bf4053...
commit 1668527acf67a1f0bf405316bf86fd5b213e1f85 Author: Serge Gautherie reactos-git_serge_171003@gautherie.fr AuthorDate: Fri Jun 8 06:31:26 2018 +0200 Commit: Thomas Faber thomas.faber@reactos.org CommitDate: Tue Jun 12 23:57:12 2018 +0200
[SYSSETUP] Fix a DPH report about dwPageCount
- "(sdk/lib/rtl/heappage.c:1329) corrupted suffix pattern" detected at "dll/win32/syssetup/wizard.c:2672 (InstallWizard)" - Add an ASSERT(), as hinted by Mark Jansen. --- dll/win32/syssetup/wizard.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/dll/win32/syssetup/wizard.c b/dll/win32/syssetup/wizard.c index b896adf193..6e34d35783 100644 --- a/dll/win32/syssetup/wizard.c +++ b/dll/win32/syssetup/wizard.c @@ -2503,7 +2503,7 @@ InstallWizard(VOID) PSETUPDATA pSetupData = NULL; HMODULE hNetShell = NULL; PFNREQUESTWIZARDPAGES pfn = NULL; - DWORD dwPageCount = 8, dwNetworkPageCount = 0; + DWORD dwPageCount = 9, dwNetworkPageCount = 0;
LogItem(L"BEGIN_SECTION", L"InstallWizard");
@@ -2636,6 +2636,8 @@ InstallWizard(VOID) psp.pszTemplate = MAKEINTRESOURCE(IDD_FINISHPAGE); phpage[nPages++] = CreatePropertySheetPage(&psp);
+ ASSERT(nPages == dwPageCount); + /* Create the property sheet */ psh.dwSize = sizeof(PROPSHEETHEADER); psh.dwFlags = PSH_WIZARD97 | PSH_WATERMARK | PSH_HEADER | PSH_MODELESS;