Serge Ivanov

Delay destroying menu entry until all messages are sent.
This commit is contained in:
Alexandre Julliard 2000-09-06 19:40:07 +00:00
parent 942dcb1df6
commit a1ce916171
1 changed files with 3 additions and 3 deletions

View File

@ -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);