Commit 38db0980 authored by Guy Albertelli's avatar Guy Albertelli Committed by Alexandre Julliard

Clear menu handle after destroying menu.

parent f12b70ad
......@@ -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 );
......
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