[NTOS:PS/x64] Use KiGetTrapContext from PspGetOrSetContextKernelRoutine

This commit is contained in:
Timo Kreuzer
2023-08-17 18:44:06 +03:00
parent 61b6cd9d28
commit 7e4f12743f

View File

@@ -58,10 +58,8 @@ PspGetOrSetContextKernelRoutine(
}
else
{
/* Convert the trap frame to a context */
KeTrapFrameToContext(TrapFrame,
NULL,
&GetSetContext->Context);
/* Get the nonvolatiles from the stack */
KiGetTrapContext(TrapFrame, &GetSetContext->Context);
}
/* Notify the Native API that we are done */