Skip to content

Commit

Permalink
[NTOS:KE/x64] Improve KeGetTrapFrame
Browse files Browse the repository at this point in the history
  • Loading branch information
tkreuzer committed Apr 10, 2024
1 parent bedc16d commit c69371c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ntoskrnl/include/internal/amd64/ke.h
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ KeGetTrapFrameFrameRegister(PKTRAP_FRAME TrapFrame)
// Macro to get trap and exception frame from a thread stack
//
#define KeGetTrapFrame(Thread) \
(PKTRAP_FRAME)((ULONG_PTR)((Thread)->InitialStack) - \
sizeof(KTRAP_FRAME))
((PKTRAP_FRAME)((ULONG_PTR)((Thread)->InitialStack) - \
sizeof(KTRAP_FRAME)))

//
// Macro to get context switches from the PRCB
Expand Down

0 comments on commit c69371c

Please sign in to comment.