From 6eb724186d775d820729fbfd974a05c2a358ef8b Mon Sep 17 00:00:00 2001 From: "Sergey Semyonov (Serge)" Date: Sat, 13 Sep 2014 08:23:11 +0000 Subject: [PATCH] kolibri-process: fix wrong return value in user_free git-svn-id: svn://kolibrios.org@5119 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/branches/kolibri-process/core/heap.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/branches/kolibri-process/core/heap.inc b/kernel/branches/kolibri-process/core/heap.inc index cdce1c854f..d1dca3af9d 100644 --- a/kernel/branches/kolibri-process/core/heap.inc +++ b/kernel/branches/kolibri-process/core/heap.inc @@ -847,6 +847,7 @@ proc user_free stdcall, base:dword call mutex_unlock xor eax, eax + inc eax pop ebx pop esi ret @@ -857,7 +858,6 @@ proc user_free stdcall, base:dword jmp .exit .fail: xor eax, eax - inc eax pop esi ret endp