On 09.03.2017 23:20, Hermès BÉLUSCA-MAÏTO wrote:
[PATCH 2/2] comctl32/propsheet: Make the PROPSHEET_RemovePage function similar to PROPSHEET_CleanUp:
Use an auxiliary psp pointer to hold the psInfo->proppage[index].hpage;
Check psInfo->proppage[index].hwndPage before destroying the
associated window.
/* Destroy page dialog window */
- DestroyWindow(psInfo->proppage[index].hwndPage);
- if(psInfo->proppage[index].hwndPage)
DestroyWindow(psInfo->proppage[index].hwndPage);
Why is this important?