winhelp: Fix WINHELP_DeleteWindow.

This commit is contained in:
Kirill K. Smirnov 2006-11-10 19:32:34 +03:00 committed by Alexandre Julliard
parent a9ae65d2f6
commit 133477c276

View file

@ -1781,6 +1781,13 @@ static void WINHELP_DeleteWindow(WINHELP_WINDOW* win)
}
}
if (Globals.active_win == win)
{
Globals.active_win = Globals.win_list;
if (Globals.win_list)
SetActiveWindow(Globals.win_list->hMainWnd);
}
for (b = win->first_button; b; b = bp)
{
DestroyWindow(b->hWnd);