https://git.reactos.org/?p=reactos.git;a=commitdiff;h=37d5522dfb15ddcf9da7e…
commit 37d5522dfb15ddcf9da7e1c14d370a2067ac18a9
Author: Serge Gautherie <reactos-git_serge_171003(a)gautherie.fr>
AuthorDate: Thu Oct 24 23:40:25 2019 +0200
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Sun Apr 26 17:32:40 2020 +0200
[NTOS:KE] KiTrap0DHandler(): Fix a copypasta
Addendum to r45038.
---
ntoskrnl/ke/i386/traphdlr.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/ntoskrnl/ke/i386/traphdlr.c b/ntoskrnl/ke/i386/traphdlr.c
index 6f26ac99a78..8ef4031b601 100644
--- a/ntoskrnl/ke/i386/traphdlr.c
+++ b/ntoskrnl/ke/i386/traphdlr.c
@@ -930,6 +930,9 @@ KiTrap0CHandler(IN PKTRAP_FRAME TrapFrame)
KiSystemFatalException(EXCEPTION_STACK_FAULT, TrapFrame);
}
+/* DECLSPEC_NORETURN VOID FASTCALL KiTrap0DHandler(IN PKTRAP_FRAME); */
+DECLSPEC_NORETURN VOID FASTCALL KiTrap0EHandler(IN PKTRAP_FRAME);
+
DECLSPEC_NORETURN
VOID
FASTCALL
@@ -1118,8 +1121,8 @@ KiTrap0DHandler(IN PKTRAP_FRAME TrapFrame)
* with an invalid CS, which will generate another GPF instead.
*
*/
- if (((PVOID)TrapFrame->Eip >= (PVOID)KiTrap0DHandler) &&
- ((PVOID)TrapFrame->Eip < (PVOID)KiTrap0DHandler))
+ if ((PVOID)TrapFrame->Eip >= (PVOID)KiTrap0DHandler &&
+ (PVOID)TrapFrame->Eip < (PVOID)KiTrap0EHandler)
{
/* Not implemented */
UNIMPLEMENTED_FATAL();