From b5d7e6e5c68a1a1532447316773568a78d60bbff Mon Sep 17 00:00:00 2001 From: "Mihail Semenyako (mike.dld)" Date: Tue, 29 Dec 2009 21:29:30 +0000 Subject: [PATCH] * gui/button.inc refactoring fix (remove_button) git-svn-id: svn://kolibrios.org@1341 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/gui/button.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/trunk/gui/button.inc b/kernel/trunk/gui/button.inc index 63f3b797e5..e042a3a02b 100644 --- a/kernel/trunk/gui/button.inc +++ b/kernel/trunk/gui/button.inc @@ -248,11 +248,13 @@ syscall_button.remove_button: jne .next_button ; okay, undefine it + push ebx mov ebx, esi lea eax, [esi + SYS_BUTTON.sizeof] call memmove dec dword[edi] add ecx, -SYS_BUTTON.sizeof + pop ebx jmp .next_button .exit: