projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- Use _SEH2_YIELD when returning from an exception instead of returning outside the...
[reactos.git]
/
reactos
/
ntoskrnl
/
ke
/
i386
/
exp.c
diff --git
a/reactos/ntoskrnl/ke/i386/exp.c
b/reactos/ntoskrnl/ke/i386/exp.c
index
4424a3d
..
6ee3c74
100644
(file)
--- a/
reactos/ntoskrnl/ke/i386/exp.c
+++ b/
reactos/ntoskrnl/ke/i386/exp.c
@@
-1072,7
+1072,6
@@
NTSTATUS
NTAPI
KeRaiseUserException(IN NTSTATUS ExceptionCode)
{
NTAPI
KeRaiseUserException(IN NTSTATUS ExceptionCode)
{
- NTSTATUS Status = STATUS_SUCCESS;
ULONG OldEip;
PTEB Teb = KeGetCurrentThread()->Teb;
PKTRAP_FRAME TrapFrame = KeGetCurrentThread()->TrapFrame;
ULONG OldEip;
PTEB Teb = KeGetCurrentThread()->Teb;
PKTRAP_FRAME TrapFrame = KeGetCurrentThread()->TrapFrame;
@@
-1085,11
+1084,10
@@
KeRaiseUserException(IN NTSTATUS ExceptionCode)
}
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
{
}
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
{
- /*
Sav
e exception code */
-
Status = ExceptionCode
;
+ /*
Return th
e exception code */
+
_SEH2_YIELD(return _SEH2_GetExceptionCode())
;
}
_SEH2_END;
}
_SEH2_END;
- if (!NT_SUCCESS(Status)) return Status;
/* Get the old EIP */
OldEip = TrapFrame->Eip;
/* Get the old EIP */
OldEip = TrapFrame->Eip;