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

Clear menu handle after destroying menu.

parent f12b70ad
No related branches found
No related tags found
No related merge requests found
......@@ -507,8 +507,16 @@ static WND* WIN_DestroyWindow( WND* wndPtr )
}
if (!(wndPtr->dwStyle & WS_CHILD))
if (wndPtr->wIDmenu) DestroyMenu( (HMENU)wndPtr->wIDmenu );
if (wndPtr->hSysMenu) DestroyMenu( wndPtr->hSysMenu );
if (wndPtr->wIDmenu)
{
DestroyMenu( wndPtr->wIDmenu );
wndPtr->wIDmenu = 0;
}
if (wndPtr->hSysMenu)
{
DestroyMenu( wndPtr->hSysMenu );
wndPtr->hSysMenu = 0;
}
wndPtr->pDriver->pDestroyWindow( wndPtr );
DCE_FreeWindowDCE( wndPtr ); /* Always do this to catch orphaned DCs */
WINPROC_FreeProc( wndPtr->winproc, WIN_PROC_WINDOW );
......
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