Skip to content

Commit 3eb03ef

Browse files
SergeGautherieJoachimHenze
authored andcommitted
[0.4.9] cherry-pick [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. (cherry picked from commit 1668527)
1 parent 9d758ae commit 3eb03ef

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dll/win32/syssetup/wizard.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2503,7 +2503,7 @@ InstallWizard(VOID)
25032503
PSETUPDATA pSetupData = NULL;
25042504
HMODULE hNetShell = NULL;
25052505
PFNREQUESTWIZARDPAGES pfn = NULL;
2506-
DWORD dwPageCount = 8, dwNetworkPageCount = 0;
2506+
DWORD dwPageCount = 9, dwNetworkPageCount = 0;
25072507

25082508
LogItem(L"BEGIN_SECTION", L"InstallWizard");
25092509

@@ -2636,6 +2636,8 @@ InstallWizard(VOID)
26362636
psp.pszTemplate = MAKEINTRESOURCE(IDD_FINISHPAGE);
26372637
phpage[nPages++] = CreatePropertySheetPage(&psp);
26382638

2639+
ASSERT(nPages == dwPageCount);
2640+
26392641
/* Create the property sheet */
26402642
psh.dwSize = sizeof(PROPSHEETHEADER);
26412643
psh.dwFlags = PSH_WIZARD97 | PSH_WATERMARK | PSH_HEADER | PSH_MODELESS;

0 commit comments

Comments
 (0)