Author: jimtabor
Date: Sat Jan 31 21:44:26 2015
New Revision: 66132
URL:
http://svn.reactos.org/svn/reactos?rev=66132&view=rev
Log:
[NtUser]
- Hack fix crash while removing menus. See CORE-9107 for crash information and CORE-8299
for overall menu issues.
Modified:
trunk/reactos/win32ss/user/ntuser/menu.c
Modified: trunk/reactos/win32ss/user/ntuser/menu.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/menu.c…
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/menu.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/menu.c [iso-8859-1] Sat Jan 31 21:44:26 2015
@@ -252,6 +252,11 @@
}
}
}
+ 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.