From 039660a24638a398e1a4c9ab37372091237519bb Mon Sep 17 00:00:00 2001 From: andrew_programmer Date: Mon, 4 Feb 2008 21:00:31 +0000 Subject: [PATCH] Save of registers after an entrance in function is added: SendMessage (), DestroyControl (). git-svn-id: svn://kolibrios.org@710 a494cfbc-eb01-0410-851d-a64ba20cac60 --- .../libGUI/src/menegment_of_controls.inc | 38 +++++++++++++++++-- programs/develop/libGUI/src/version.inc | 2 +- programs/develop/libGUI/whats new.txt | 7 ++++ 3 files changed, 43 insertions(+), 4 deletions(-) diff --git a/programs/develop/libGUI/src/menegment_of_controls.inc b/programs/develop/libGUI/src/menegment_of_controls.inc index fda1bba801..3b0ba3f45f 100644 --- a/programs/develop/libGUI/src/menegment_of_controls.inc +++ b/programs/develop/libGUI/src/menegment_of_controls.inc @@ -95,7 +95,15 @@ align 4 destroy_control: - mov eax,[esp+4] + push eax + push ebx + push ecx + push edx + push esi + push edi + push ebp + + mov eax,[esp+28+4] mov ebx,[eax+20] ;get parend for control @@ -224,6 +232,14 @@ destroy_control: ;******************************************************************* exit_destroy_control: + pop ebp + pop edi + pop esi + pop edx + pop ecx + pop ebx + pop eax + ret 4 ;*********************************************************** @@ -239,12 +255,20 @@ align 4 send_message: + push eax + push ebx + push ecx + push edx + push esi + push edi + push ebp + ;get pointer to parend - mov eax,[esp+4] + mov eax,[esp+28+4] mov [Parend],eax ;get message - mov esi,[esp+8] + mov esi,[esp+28+8] mov edi,dword Message mov ecx,4 rep movsd @@ -438,6 +462,14 @@ send_message: exit_check_event_type: + pop ebp + pop edi + pop esi + pop edx + pop ecx + pop ebx + pop eax + ret 8 diff --git a/programs/develop/libGUI/src/version.inc b/programs/develop/libGUI/src/version.inc index 970b7cd9f4..becaa73519 100644 --- a/programs/develop/libGUI/src/version.inc +++ b/programs/develop/libGUI/src/version.inc @@ -11,6 +11,6 @@ align 4 get_version: xor eax,eax - mov eax,dword 080131 ;31.01.08 + mov eax,dword 080204 ;4.02.08 ret \ No newline at end of file diff --git a/programs/develop/libGUI/whats new.txt b/programs/develop/libGUI/whats new.txt index 6211ebf48d..619b3c2a55 100644 --- a/programs/develop/libGUI/whats new.txt +++ b/programs/develop/libGUI/whats new.txt @@ -1,3 +1,10 @@ +4.02.08 +RUSSIAN +Добавлено сохранение регистров после входа в функции: SendMessage() , DestroyControl(). + +ENGLISH +Save of registers after an entrance in function is added: SendMessage (), DestroyControl (). + 31.01.08 RUSSIAN Добавлено сохранение регистров после входа в функции libGUI.