fix is_region_userspace (worked incorrectly for e.g 0xFFFFFFFF)

git-svn-id: svn://kolibrios.org@8216 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Rustem Gimadutdinov (rgimad) 2020-11-17 20:00:28 +00:00
parent 055b9d04c4
commit efa84a263d

View File

@ -5674,13 +5674,16 @@ is_region_userspace:
; ebx = len
; out: eax = 1 if region in userspace memory, 0 if not
push esi edi ecx
cmp eax, OS_BASE
ja @f
add eax, ebx
cmp eax, OS_BASE
ja @f
mov eax, 1
jmp .ret
jmp .ret
@@:
xor eax, eax
.ret: