From 0a0395bfc8ef4ee7e289af8e2948b30bf16b3c5e Mon Sep 17 00:00:00 2001 From: Dmitry Gorbachev Date: Tue, 1 May 2007 08:52:59 +0000 Subject: [PATCH] - Fix infinite loop. - Add debug msg. svn path=/trunk/; revision=26608 --- reactos/ntoskrnl/ke/i386/exp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/reactos/ntoskrnl/ke/i386/exp.c b/reactos/ntoskrnl/ke/i386/exp.c index 4893a1eac64..0564ca68391 100644 --- a/reactos/ntoskrnl/ke/i386/exp.c +++ b/reactos/ntoskrnl/ke/i386/exp.c @@ -980,7 +980,9 @@ DispatchToUser: /* Set EIP to the User-mode Dispatcher */ TrapFrame->Eip = (ULONG)KeUserExceptionDispatcher; - _SEH_LEAVE; + + /* Dispatch exception to user-mode */ + return; } _SEH_EXCEPT(KiCopyInformation) { @@ -1000,9 +1002,6 @@ DispatchToUser: } } _SEH_END; - - /* Dispatch exception to user-mode */ - return; } /* Try second chance */ @@ -1018,6 +1017,7 @@ DispatchToUser: } /* 3rd strike, kill the process */ + DPRINT1("Kill the process\n"); ZwTerminateProcess(NtCurrentProcess(), ExceptionRecord->ExceptionCode); KeBugCheckEx(KMODE_EXCEPTION_NOT_HANDLED, ExceptionRecord->ExceptionCode,