mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[NTOS] Fix NtContinue for x64
This commit is contained in:
parent
6744368755
commit
a007f5e490
1 changed files with 8 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue