[PATCH 2/2] comctl32/propsheet: Make the PROPSHEET_RemovePage function similar to PROPSHEET_CleanUp
Nikolay Sivov
bunglehead at gmail.com
Thu Mar 9 16:18:46 CST 2017
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?
More information about the wine-devel
mailing list