ntdll: Fix valid frame address range in ARM/ARM64.

Signed-off-by: Jinoh Kang <jinoh.kang.kr@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jinoh Kang 2021-12-09 18:03:13 +09:00 committed by Alexandre Julliard
parent 33308a577c
commit 1886b3d322
2 changed files with 2 additions and 2 deletions

View file

@ -89,7 +89,7 @@ static inline BOOL is_valid_frame( ULONG_PTR frame )
{
if (frame & 3) return FALSE;
return ((void *)frame >= NtCurrentTeb()->Tib.StackLimit &&
(void **)frame < (void **)NtCurrentTeb()->Tib.StackBase - 1);
(void *)frame <= NtCurrentTeb()->Tib.StackBase);
}

View file

@ -96,7 +96,7 @@ static inline BOOL is_valid_frame( ULONG_PTR frame )
{
if (frame & 7) return FALSE;
return ((void *)frame >= NtCurrentTeb()->Tib.StackLimit &&
(void **)frame < (void **)NtCurrentTeb()->Tib.StackBase - 1);
(void *)frame <= NtCurrentTeb()->Tib.StackBase);
}