Verify the menu handle is non-zero prior to use.

This commit is contained in:
Guy L. Albertelli 2000-05-10 21:39:00 +00:00 committed by Alexandre Julliard
parent 130f0d88c1
commit c0504ca5f6
1 changed files with 1 additions and 1 deletions

View File

@ -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 */