[NTOS:KE:X64] Set the exception frame as well in KiInitializeContextThread

This commit is contained in:
Timo Kreuzer
2020-01-06 00:56:20 +01:00
parent f66a7e2e48
commit bdd4d5d8d8

View File

@@ -77,10 +77,11 @@ KiInitializeContextThread(IN PKTHREAD Thread,
/* Zero out the trap frame */
RtlZeroMemory(TrapFrame, sizeof(KTRAP_FRAME));
RtlZeroMemory(&InitFrame->ExceptionFrame, sizeof(KEXCEPTION_FRAME));
/* Set up a trap frame from the context. */
KeContextToTrapFrame(Context,
NULL,
&InitFrame->ExceptionFrame,
TrapFrame,
CONTEXT_AMD64 | ContextFlags,
UserMode);