fixed crash when one attempts to define too many buttons

git-svn-id: svn://kolibrios.org@965 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Evgeny Grechnikov (Diamond) 2008-12-16 23:39:40 +00:00
parent ce8f04acdb
commit 453e56f624

View File

@ -226,7 +226,6 @@ sys_button:
button_no_draw:
push edi
mov edi, [BTN_ADDR]
movzx eax, word [edi]
cmp eax, max_buttons
@ -251,8 +250,6 @@ button_no_draw:
shr eax, 16
stosw ; button id number: bits 16-31
pop edi
noaddbutt:
ret