Author: sginsberg
Date: Sat Aug 23 12:16:16 2008
New Revision: 35567
URL:
http://svn.reactos.org/svn/reactos?rev=35567&view=rev
Log:
- Add THREAD_TERMINATE_HELD_MUTEX bugcode and make use of it
Modified:
trunk/reactos/include/reactos/mc/bugcodes.mc
trunk/reactos/ntoskrnl/ke/thrdobj.c
Modified: trunk/reactos/include/reactos/mc/bugcodes.mc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/mc/bugcode…
==============================================================================
--- trunk/reactos/include/reactos/mc/bugcodes.mc [iso-8859-1] (original)
+++ trunk/reactos/include/reactos/mc/bugcodes.mc [iso-8859-1] Sat Aug 23 12:16:16 2008
@@ -1397,6 +1397,14 @@
MultiProcessor Kernel
.
+MessageId=0x8A
+Severity=Informational
+Facility=System
+SymbolicName=THREAD_TERMINATE_HELD_MUTEX
+Language=English
+A kernel thread terminated while holding a mutex
+.
+
MessageId=0x9D
Severity=Informational
Facility=System
Modified: trunk/reactos/ntoskrnl/ke/thrdobj.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ke/thrdobj.c?rev=…
==============================================================================
--- trunk/reactos/ntoskrnl/ke/thrdobj.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ke/thrdobj.c [iso-8859-1] Sat Aug 23 12:16:16 2008
@@ -416,7 +416,7 @@
if (Mutant->ApcDisable)
{
/* Bugcheck the system */
- KEBUGCHECKEX(0, //THREAD_TERMINATE_HELD_MUTEX,
+ KeBugCheckEx(THREAD_TERMINATE_HELD_MUTEX,
(ULONG_PTR)Thread,
(ULONG_PTR)Mutant,
0,