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, ...@@ -660,8 +660,6 @@ static LRESULT MDIDestroyChild( WND *w_parent, MDICLIENTINFO *ci,
if( childPtr ) if( childPtr )
{ {
MDI_MenuDeleteItem(w_parent, child);
if( child == ci->hwndActiveChild ) if( child == ci->hwndActiveChild )
{ {
MDI_SwitchActiveChild(parent, child, TRUE); MDI_SwitchActiveChild(parent, child, TRUE);
...@@ -680,6 +678,8 @@ static LRESULT MDIDestroyChild( WND *w_parent, MDICLIENTINFO *ci, ...@@ -680,6 +678,8 @@ static LRESULT MDIDestroyChild( WND *w_parent, MDICLIENTINFO *ci,
} }
} }
MDI_MenuDeleteItem(w_parent, child);
WIN_ReleaseWndPtr(childPtr); WIN_ReleaseWndPtr(childPtr);
ci->nActiveChildren--; ci->nActiveChildren--;
......
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