Skip to content
Snippets Groups Projects
Commit a2e1b412 authored by Gerard Patel's avatar Gerard Patel Committed by Alexandre Julliard
Browse files

Always calls SetMenu in MDISetMenu.

parent 5f6da6b5
No related branches found
No related tags found
No related merge requests found
......@@ -282,13 +282,16 @@ static LRESULT MDISetMenu( HWND hwnd, HMENU hmenuFrame,
ci->hWindowMenu = hmenuWindow;
}
if( hmenuFrame && hmenuFrame!=oldFrameMenu)
if (hmenuFrame)
{
SetMenu(hwndFrame, hmenuFrame);
if( ci->hwndChildMaximized )
MDI_AugmentFrameMenu(ci, w->parent, ci->hwndChildMaximized );
WIN_ReleaseWndPtr(w);
return oldFrameMenu;
if( hmenuFrame!=oldFrameMenu )
{
if( ci->hwndChildMaximized )
MDI_AugmentFrameMenu(ci, w->parent, ci->hwndChildMaximized );
WIN_ReleaseWndPtr(w);
return oldFrameMenu;
}
}
WIN_ReleaseWndPtr(w);
return 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment