From 4f072de6504ea3b6e2659c0be71a5d771b307710 Mon Sep 17 00:00:00 2001 From: Doczom Date: Sat, 23 Oct 2021 17:11:57 +0000 Subject: [PATCH] update git-svn-id: svn://kolibrios.org@9224 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/kernel.asm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/kernel/trunk/kernel.asm b/kernel/trunk/kernel.asm index 9d677731e8..ffe99bb925 100644 --- a/kernel/trunk/kernel.asm +++ b/kernel/trunk/kernel.asm @@ -5215,11 +5215,11 @@ syscall_writetext: ; WriteText push esi ;check pointer on kernel address. test ecx, 0x80000000 jz @f - mov esi, 0 + xor esi, esi @@: stdcall is_region_userspace, edx, esi - jnz .err_1 pop esi + jnz .err mov eax, [TASK_BASE] mov ebp, [eax-twdw+WDATA.box.left] @@ -5245,8 +5245,6 @@ align 4 stdcall is_region_userspace, edi, 0 jnz .err jmp dtext -.err_1: - pop esi .err: ret