diff --git a/windows/mdi.c b/windows/mdi.c index dd64a748386..c143aa3f7f5 100644 --- a/windows/mdi.c +++ b/windows/mdi.c @@ -236,7 +236,7 @@ static LRESULT MDISetMenu( HWND hwnd, HMENU hmenuFrame, if( ci->hwndChildMaximized && hmenuFrame && hmenuFrame!=oldFrameMenu ) MDI_RestoreFrameMenu(w->parent, ci->hwndChildMaximized ); - if( hmenuWindow && hmenuWindow!=ci->hWindowMenu ) + if( hmenuWindow && ci->hWindowMenu && hmenuWindow!=ci->hWindowMenu ) { /* delete menu items from ci->hWindowMenu * and add them to hmenuWindow */