- Hack fix crash while removing menus. See CORE-9107 for crash information and CORE-8299 for overall menu issues.

svn path=/trunk/; revision=66132
This commit is contained in:
James Tabor 2015-01-31 21:44:26 +00:00
parent 8c1b044a8c
commit db9a74e7cc

View file

@ -252,6 +252,11 @@ IntDestroyMenuObject(PMENU Menu, BOOL bRecurse)
}
}
}
if (UserObjectInDestroy(Menu->head.h))
{
ERR("Menu already dead!\n");
return FALSE;
}
ret = UserDeleteObject(Menu->head.h, TYPE_MENU);
if (!ret)
{ // Make sure it is really dead or just marked for deletion.