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:
|
button_no_draw:
|
||||||
|
|
||||||
push edi
|
|
||||||
mov edi, [BTN_ADDR]
|
mov edi, [BTN_ADDR]
|
||||||
movzx eax, word [edi]
|
movzx eax, word [edi]
|
||||||
cmp eax, max_buttons
|
cmp eax, max_buttons
|
||||||
@ -251,8 +250,6 @@ button_no_draw:
|
|||||||
shr eax, 16
|
shr eax, 16
|
||||||
stosw ; button id number: bits 16-31
|
stosw ; button id number: bits 16-31
|
||||||
|
|
||||||
pop edi
|
|
||||||
|
|
||||||
noaddbutt:
|
noaddbutt:
|
||||||
|
|
||||||
ret
|
ret
|
||||||
|
Loading…
Reference in New Issue
Block a user