Commit 2a8463b5 authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

comctl32: Unset active page while setting a new active page for a propsheet.

Before calling the PSN_SETACTIVE in PROPSHEET_SetCurSel set the active_page to -1. This prevents crashes and corruption of the property sheet if the application makes any modifications during the PSN_SETACTIVE.
parent 06b41408
......@@ -2023,6 +2023,11 @@ static BOOL PROPSHEET_SetCurSel(HWND hwndDlg,
return FALSE;
}
/* unset active page while doing this transition. */
if (psInfo->active_page != -1)
ShowWindow(psInfo->proppage[psInfo->active_page].hwndPage, SW_HIDE);
psInfo->active_page = -1;
while (1) {
int result;
PSHNOTIFY psn;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment