Kirill K. Smirnov : winhelp: Fix WINHELP_DeleteWindow.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Nov 13 06:28:28 CST 2006


Module: wine
Branch: master
Commit: 133477c2766d91b9648e0ba4528dd02498c84009
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=133477c2766d91b9648e0ba4528dd02498c84009

Author: Kirill K. Smirnov <lich at 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);




More information about the wine-cvs mailing list