Commit a1ce9161 authored by Alexandre Julliard's avatar Alexandre Julliard

Serge Ivanov

Delay destroying menu entry until all messages are sent.
parent 942dcb1d
......@@ -660,8 +660,6 @@ static LRESULT MDIDestroyChild( WND *w_parent, MDICLIENTINFO *ci,
if( childPtr )
{
MDI_MenuDeleteItem(w_parent, child);
if( child == ci->hwndActiveChild )
{
MDI_SwitchActiveChild(parent, child, TRUE);
......@@ -678,7 +676,9 @@ static LRESULT MDIDestroyChild( WND *w_parent, MDICLIENTINFO *ci,
MDI_ChildActivate(w_parent, 0);
}
}
}
MDI_MenuDeleteItem(w_parent, child);
WIN_ReleaseWndPtr(childPtr);
......
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