Serge Ivanov

Delay destroying menu entry until all messages are sent.
oldstable
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);