Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not attempt to hook NtSetContextThread if the call is coming from …
…kernel mode *Zw*Get/SetContextThread behaves very differently from *Nt*Get/SetContextThread; e.g. calling ZwSetContextThread will modify a thread's kernel trap frame rather than the user mode CONTEXT structure that the Nt syscall expects. Modifying the KTRAP_FRAME is a good way to kill a thread and probably the rest of the OS with it
- Loading branch information