Verify the menu handle is non-zero prior to use.
This commit is contained in:
parent
130f0d88c1
commit
c0504ca5f6
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue