git-svn-id: svn://kolibrios.org@9222 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Doczom 2021-10-23 15:53:35 +00:00
parent 83176ac8ef
commit bb36197cd2

View File

@ -5212,8 +5212,14 @@ align 4
syscall_writetext: ; WriteText syscall_writetext: ; WriteText
push esi ;check pointer on kernel address.
test ecx, 0x80000000
jz @f
mov esi, 0
@@:
stdcall is_region_userspace, edx, esi stdcall is_region_userspace, edx, esi
jnz .err jnz .err
pop esi
mov eax, [TASK_BASE] mov eax, [TASK_BASE]
mov ebp, [eax-twdw+WDATA.box.left] mov ebp, [eax-twdw+WDATA.box.left]