From bb36197cd28c0baeabbdf611412e362abd5e415e Mon Sep 17 00:00:00 2001 From: Doczom Date: Sat, 23 Oct 2021 15:53:35 +0000 Subject: [PATCH] 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 --- kernel/trunk/kernel.asm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/kernel/trunk/kernel.asm b/kernel/trunk/kernel.asm index 0a90b6cd71..1844c4c04a 100644 --- a/kernel/trunk/kernel.asm +++ b/kernel/trunk/kernel.asm @@ -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]