mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 19:21:38 +00:00
[NTOS:KE/x64] Fix KiConvertToGuiThread
- Do not allocate a new stack, if the thread already has a large one. This prevents the function from freeing a large stack as a normal stack and subsequently leaking system PTEs. - Fix the check for failure of PsConvertToGuiThread (test eax, not rax, for being negative, because by default rax is zero extended from eax, not sign extended). This fixes an infinite loop on failure.
This commit is contained in:
parent
c7fd9983cb
commit
15fbcc19b9
2 changed files with 11 additions and 3 deletions
|
@ -1047,6 +1047,7 @@ OFFSET(KTHREAD_TrapFrame, KTHREAD, TrapFrame),
|
|||
OFFSET(KTHREAD_PreviousMode, KTHREAD, PreviousMode),
|
||||
OFFSET(KTHREAD_KernelStack, KTHREAD, KernelStack),
|
||||
OFFSET(KTHREAD_UserApcPending, KTHREAD, ApcState.UserApcPending),
|
||||
OFFSET(KTHREAD_LargeStack, KTHREAD, LargeStack),
|
||||
|
||||
HEADER("KINTERRUPT"),
|
||||
OFFSET(KINTERRUPT_Type, KINTERRUPT, Type),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue