Skip to content
Snippets Groups Projects
Commit c0504ca5 authored by Guy Albertelli's avatar Guy Albertelli Committed by Alexandre Julliard
Browse files

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

parent 130f0d88
No related branches found
No related tags found
No related merge requests found
......@@ -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 */
......
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