From 453e56f624b6152ce8428b43ce054c3c9c7128eb Mon Sep 17 00:00:00 2001 From: "Evgeny Grechnikov (Diamond)" Date: Tue, 16 Dec 2008 23:39:40 +0000 Subject: [PATCH] fixed crash when one attempts to define too many buttons git-svn-id: svn://kolibrios.org@965 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/gui/button.inc | 3 --- 1 file changed, 3 deletions(-) diff --git a/kernel/trunk/gui/button.inc b/kernel/trunk/gui/button.inc index d63774bbf3..fecac56404 100644 --- a/kernel/trunk/gui/button.inc +++ b/kernel/trunk/gui/button.inc @@ -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