[NTOS:PS/x64] Use KiGetTrapContext from PspGetOrSetContextKernelRoutine

This commit is contained in:
Timo Kreuzer
2025-07-10 14:57:09 +03:00
parent 61b6cd9d28
commit 7e4f12743f
+2 -4
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 */