mirror of
https://github.com/reactos/reactos.git
synced 2026-06-08 17:02:56 +08:00
[NTOS] Fix NtContinue for x64
This commit is contained in:
@@ -28,12 +28,16 @@ KiContinuePreviousModeUser(IN PCONTEXT Context,
|
||||
RtlCopyMemory(&LocalContext, Context, sizeof(CONTEXT));
|
||||
Context = &LocalContext;
|
||||
|
||||
#ifdef _M_AMD64
|
||||
KiSetTrapContext(TrapFrame, &LocalContext, UserMode);
|
||||
#else
|
||||
/* Convert the context into Exception/Trap Frames */
|
||||
KeContextToTrapFrame(&LocalContext,
|
||||
ExceptionFrame,
|
||||
TrapFrame,
|
||||
LocalContext.ContextFlags,
|
||||
UserMode);
|
||||
#endif
|
||||
}
|
||||
|
||||
NTSTATUS
|
||||
@@ -62,12 +66,16 @@ KiContinue(IN PCONTEXT Context,
|
||||
}
|
||||
else
|
||||
{
|
||||
#ifdef _M_AMD64
|
||||
KiSetTrapContext(TrapFrame, Context, KernelMode);
|
||||
#else
|
||||
/* Convert the context into Exception/Trap Frames */
|
||||
KeContextToTrapFrame(Context,
|
||||
ExceptionFrame,
|
||||
TrapFrame,
|
||||
Context->ContextFlags,
|
||||
KernelMode);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
|
||||
|
||||
Reference in New Issue
Block a user