From a1d6f1eae48c007a999574ed3db9f4f72fe0355e Mon Sep 17 00:00:00 2001 From: Akyltist Date: Tue, 8 Apr 2014 07:40:38 +0000 Subject: [PATCH] fix kernel function 48.2 48.3 (set EDX max size = 192 byte) git-svn-id: svn://kolibrios.org@4796 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/gui/window.inc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/kernel/trunk/gui/window.inc b/kernel/trunk/gui/window.inc index cbd42c23f2..ca5710b058 100644 --- a/kernel/trunk/gui/window.inc +++ b/kernel/trunk/gui/window.inc @@ -173,6 +173,10 @@ align 4 syscall_display_settings.02: dec ebx mov esi, ecx + cmp edx, 192 + jnae @f + mov edx, 192 ; max size + @@: and edx, 255 mov edi, common_colours mov ecx, edx @@ -183,6 +187,10 @@ syscall_display_settings.02: align 4 syscall_display_settings.03: mov edi, ecx + cmp edx, 192 + jnae @f + mov edx, 192 ; max size + @@: and edx, 255 mov esi, common_colours mov ecx, edx