Commit 133477c2 authored by Kirill K. Smirnov's avatar Kirill K. Smirnov Committed by Alexandre Julliard

winhelp: Fix WINHELP_DeleteWindow.

parent a9ae65d2
......@@ -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);
......
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