From 2e75e632d0f2e493af5d9045b3e79ed861899905 Mon Sep 17 00:00:00 2001 From: Stefan Ginsberg Date: Fri, 26 Sep 2008 22:11:10 +0000 Subject: [PATCH] - Fix a couple of bugcodes with incorrect MessageId - Add SYSTEM_THREAD_EXCEPTION_NOT_HANDLED make use of it svn path=/trunk/; revision=36541 --- reactos/include/reactos/mc/bugcodes.mc | 16 +++++++++++----- reactos/ntoskrnl/ps/thread.c | 2 +- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/reactos/include/reactos/mc/bugcodes.mc b/reactos/include/reactos/mc/bugcodes.mc index b3f8dac9cb1..6b8db40ad7a 100644 --- a/reactos/include/reactos/mc/bugcodes.mc +++ b/reactos/include/reactos/mc/bugcodes.mc @@ -1032,8 +1032,6 @@ Run CHKDSK /F to check for hard drive corruption, and then restart your computer. . - - MessageId=0x7D Severity=Success Facility=System @@ -1045,6 +1043,14 @@ INSTALL_MORE_MEMORY MessageId=0x7E Severity=Success Facility=System +SymbolicName=SYSTEM_THREAD_EXCEPTION_NOT_HANDLED +Language=English +SYSTEM_THREAD_EXCEPTION_NOT_HANDLED +. + +MessageId=0x7F +Severity=Success +Facility=System SymbolicName=UNEXPECTED_KERNEL_MODE_TRAP Language=English Run a system diagnostic utility supplied by your hardware manufacturer. @@ -1057,7 +1063,7 @@ remove or disable components, restart your computer, press F8 to select Advanced Startup Options, and then select Safe Mode. . -MessageId=0x7F +MessageId=0x80 Severity=Success Facility=System SymbolicName=NMI_HARDWARE_FAILURE @@ -1065,7 +1071,7 @@ Language=English Hardware malfunction . -MessageId=0x80 +MessageId=0x8E Severity=Success Facility=System SymbolicName=KERNEL_MODE_EXCEPTION_NOT_HANDLED @@ -1073,7 +1079,7 @@ Language=English KERNEL_MODE_EXCEPTION_NOT_HANDLED . -MessageId=0x8E +MessageId=0x81 Severity=Success Facility=System SymbolicName=SPIN_LOCK_INIT_FAILURE diff --git a/reactos/ntoskrnl/ps/thread.c b/reactos/ntoskrnl/ps/thread.c index 2090314a842..ed4524d3100 100644 --- a/reactos/ntoskrnl/ps/thread.c +++ b/reactos/ntoskrnl/ps/thread.c @@ -129,7 +129,7 @@ _SEH_FILTER(PspUnhandledExceptionInSystemThread) ExceptionPointers->ExceptionRecord->ExceptionInformation[3]); /* Bugcheck the system */ - KeBugCheckEx(0x7E, + KeBugCheckEx(SYSTEM_THREAD_EXCEPTION_NOT_HANDLED, ExceptionPointers->ExceptionRecord->ExceptionCode, (ULONG_PTR)ExceptionPointers->ExceptionRecord->ExceptionAddress, (ULONG_PTR)ExceptionPointers->ExceptionRecord,