winhelp: fix WINHELP_DeleteWindow
Kirill K. Smirnov
lich at math.spbu.ru
Fri Nov 10 10:32:34 CST 2006
ChangeLog:
Fix WINHELP_DeleteWindow while deleting active window
-------------- next part --------------
diff --git a/programs/winhelp/winhelp.c b/programs/winhelp/winhelp.c
index 389ba5a..808a760 100644
--- a/programs/winhelp/winhelp.c
+++ b/programs/winhelp/winhelp.c
@@ -1781,6 +1798,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-patches
mailing list