mirror of
https://github.com/reactos/reactos.git
synced 2026-06-01 00:40:26 +08:00
[NTOS:KE:X64] Set the exception frame as well in KiInitializeContextThread
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user