mirror of
https://github.com/reactos/reactos.git
synced 2025-06-23 21:30: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
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
KiDispatchException(PEXCEPTION_RECORD ExceptionRecord,
|
KiDispatchException(IN PEXCEPTION_RECORD ExceptionRecord,
|
||||||
PKEXCEPTION_FRAME ExceptionFrame,
|
IN PKEXCEPTION_FRAME ExceptionFrame,
|
||||||
PKTRAP_FRAME TrapFrame,
|
IN PKTRAP_FRAME TrapFrame,
|
||||||
KPROCESSOR_MODE PreviousMode,
|
IN KPROCESSOR_MODE PreviousMode,
|
||||||
BOOLEAN FirstChance)
|
IN BOOLEAN FirstChance)
|
||||||
{
|
{
|
||||||
CONTEXT Context;
|
CONTEXT Context;
|
||||||
ULONG_PTR Stack, NewStack;
|
ULONG_PTR Stack, NewStack;
|
||||||
|
@ -636,6 +636,7 @@ KiDispatchException(PEXCEPTION_RECORD ExceptionRecord,
|
||||||
Context.Eip--;
|
Context.Eip--;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Sanity check */
|
||||||
ASSERT(!((PreviousMode == KernelMode) &&
|
ASSERT(!((PreviousMode == KernelMode) &&
|
||||||
(Context.EFlags & EFLAGS_V86_MASK)));
|
(Context.EFlags & EFLAGS_V86_MASK)));
|
||||||
|
|
||||||
|
@ -784,6 +785,9 @@ DispatchToUser:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_SEH_END;
|
_SEH_END;
|
||||||
|
|
||||||
|
/* Dispatch exception to user-mode */
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Try second chance */
|
/* Try second chance */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue