mirror of
https://github.com/reactos/reactos.git
synced 2025-05-06 18:31:26 +00:00
[NTOS:KE] Zero out ExceptionFrame member in Syscall handler
This commit is contained in:
parent
366e8a840c
commit
04f0c7d0d7
1 changed files with 3 additions and 0 deletions
|
@ -330,6 +330,9 @@ KiSystemCallHandler(
|
|||
TrapFrame->TrapFrame = (ULONG64)Thread->TrapFrame;
|
||||
Thread->TrapFrame = TrapFrame;
|
||||
|
||||
/* We don't have an exception frame yet */
|
||||
TrapFrame->ExceptionFrame = 0;
|
||||
|
||||
/* Before enabling interrupts get the user rsp from the KPCR */
|
||||
UserRsp = __readgsqword(FIELD_OFFSET(KIPCR, UserRsp));
|
||||
TrapFrame->Rsp = UserRsp;
|
||||
|
|
Loading…
Reference in a new issue