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
1 changed files with 7 additions and 0 deletions

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);