forked from KolibriOS/kolibrios
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:
parent
ce8f04acdb
commit
453e56f624
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user