Module: wine Branch: master Commit: 133477c2766d91b9648e0ba4528dd02498c84009 URL: http://source.winehq.org/git/wine.git/?a=commit;h=133477c2766d91b9648e0ba452...
Author: Kirill K. Smirnov lich@math.spbu.ru Date: Fri Nov 10 19:32:34 2006 +0300
winhelp: Fix WINHELP_DeleteWindow.
---
programs/winhelp/winhelp.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/programs/winhelp/winhelp.c b/programs/winhelp/winhelp.c index f7c0ae3..c1d07ef 100644 --- a/programs/winhelp/winhelp.c +++ b/programs/winhelp/winhelp.c @@ -1781,6 +1781,13 @@ static void WINHELP_DeleteWindow(WINHELP } }
+ 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);