* gui/button.inc refactoring fix (remove_button)

git-svn-id: svn://kolibrios.org@1341 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Mihail Semenyako (mike.dld) 2009-12-29 21:29:30 +00:00
parent 21ee3e96a8
commit b5d7e6e5c6

View File

@ -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: