Commit c0504ca5 authored by Guy L. Albertelli's avatar Guy L. Albertelli Committed by Alexandre Julliard

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

parent 130f0d88
......@@ -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 */
......
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