mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[NTOS:KE:X64] Set the exception frame as well in KiInitializeContextThread
This commit is contained in:
parent
f66a7e2e48
commit
bdd4d5d8d8
1 changed files with 2 additions and 1 deletions
|
@ -77,10 +77,11 @@ KiInitializeContextThread(IN PKTHREAD Thread,
|
||||||
|
|
||||||
/* Zero out the trap frame */
|
/* Zero out the trap frame */
|
||||||
RtlZeroMemory(TrapFrame, sizeof(KTRAP_FRAME));
|
RtlZeroMemory(TrapFrame, sizeof(KTRAP_FRAME));
|
||||||
|
RtlZeroMemory(&InitFrame->ExceptionFrame, sizeof(KEXCEPTION_FRAME));
|
||||||
|
|
||||||
/* Set up a trap frame from the context. */
|
/* Set up a trap frame from the context. */
|
||||||
KeContextToTrapFrame(Context,
|
KeContextToTrapFrame(Context,
|
||||||
NULL,
|
&InitFrame->ExceptionFrame,
|
||||||
TrapFrame,
|
TrapFrame,
|
||||||
CONTEXT_AMD64 | ContextFlags,
|
CONTEXT_AMD64 | ContextFlags,
|
||||||
UserMode);
|
UserMode);
|
||||||
|
|
Loading…
Reference in a new issue