forked from KolibriOS/kolibrios
fix bug http://bugs.kolibrios.org/view.php?id=145 in sf 4
git-svn-id: svn://kolibrios.org@9222 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
83176ac8ef
commit
bb36197cd2
@ -5212,8 +5212,14 @@ align 4
|
||||
|
||||
syscall_writetext: ; WriteText
|
||||
|
||||
push esi ;check pointer on kernel address.
|
||||
test ecx, 0x80000000
|
||||
jz @f
|
||||
mov esi, 0
|
||||
@@:
|
||||
stdcall is_region_userspace, edx, esi
|
||||
jnz .err
|
||||
pop esi
|
||||
|
||||
mov eax, [TASK_BASE]
|
||||
mov ebp, [eax-twdw+WDATA.box.left]
|
||||
|
Loading…
Reference in New Issue
Block a user