mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 02:05:50 +00:00
[NTOSKRNL]
- Fix RtlWalkFrameChain to do usermode back traces for threads that are not system threads. Also use _SEH2_YIELD when leaving the SEH block. svn path=/trunk/; revision=47066
This commit is contained in:
parent
0409ef75e8
commit
8dc269c258
1 changed files with 2 additions and 3 deletions
|
@ -331,12 +331,11 @@ RtlWalkFrameChain(OUT PVOID *Callers,
|
||||||
|
|
||||||
/* Make sure we can trust the TEB and trap frame */
|
/* Make sure we can trust the TEB and trap frame */
|
||||||
if (!(Teb) ||
|
if (!(Teb) ||
|
||||||
!(Thread->SystemThread) ||
|
|
||||||
(KeIsAttachedProcess()) ||
|
(KeIsAttachedProcess()) ||
|
||||||
(KeGetCurrentIrql() >= DISPATCH_LEVEL))
|
(KeGetCurrentIrql() >= DISPATCH_LEVEL))
|
||||||
{
|
{
|
||||||
/* Invalid or unsafe attempt to get the stack */
|
/* Invalid or unsafe attempt to get the stack */
|
||||||
return 0;
|
_SEH2_YIELD(return 0;)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Get the stack limits */
|
/* Get the stack limits */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue