mirror of
https://github.com/reactos/reactos.git
synced 2025-04-20 04:20:46 +00:00
- A missing "return" statement to KiDispatchException which was causing all user-mode exceptions to become second-chance and thus crash the app. mIRC works again, and probably numerous other apps (mozilla as well i think, since it had the same issue)
svn path=/trunk/; revision=24169
This commit is contained in:
parent
551811ac52
commit
adb93d9531
1 changed files with 9 additions and 5 deletions
|
@ -594,11 +594,11 @@ KeTrapFrameToContext(IN PKTRAP_FRAME TrapFrame,
|
|||
|
||||
VOID
|
||||
NTAPI
|
||||
KiDispatchException(PEXCEPTION_RECORD ExceptionRecord,
|
||||
PKEXCEPTION_FRAME ExceptionFrame,
|
||||
PKTRAP_FRAME TrapFrame,
|
||||
KPROCESSOR_MODE PreviousMode,
|
||||
BOOLEAN FirstChance)
|
||||
KiDispatchException(IN PEXCEPTION_RECORD ExceptionRecord,
|
||||
IN PKEXCEPTION_FRAME ExceptionFrame,
|
||||
IN PKTRAP_FRAME TrapFrame,
|
||||
IN KPROCESSOR_MODE PreviousMode,
|
||||
IN BOOLEAN FirstChance)
|
||||
{
|
||||
CONTEXT Context;
|
||||
ULONG_PTR Stack, NewStack;
|
||||
|
@ -636,6 +636,7 @@ KiDispatchException(PEXCEPTION_RECORD ExceptionRecord,
|
|||
Context.Eip--;
|
||||
}
|
||||
|
||||
/* Sanity check */
|
||||
ASSERT(!((PreviousMode == KernelMode) &&
|
||||
(Context.EFlags & EFLAGS_V86_MASK)));
|
||||
|
||||
|
@ -784,6 +785,9 @@ DispatchToUser:
|
|||
}
|
||||
}
|
||||
_SEH_END;
|
||||
|
||||
/* Dispatch exception to user-mode */
|
||||
return;
|
||||
}
|
||||
|
||||
/* Try second chance */
|
||||
|
|
Loading…
Reference in a new issue