From 160c847c8859a5adc79f1ceebba058eff84a243c Mon Sep 17 00:00:00 2001 From: "Marat Zakiyanov (Mario79)" Date: Thu, 15 Mar 2012 16:38:53 +0000 Subject: [PATCH] Fix for r.2430 - guarantee the updating data after f. 18.2 and f. 18.18 git-svn-id: svn://kolibrios.org@2468 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/kernel.asm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/kernel/trunk/kernel.asm b/kernel/trunk/kernel.asm index f7a75c3226..ec9a4feab6 100644 --- a/kernel/trunk/kernel.asm +++ b/kernel/trunk/kernel.asm @@ -1949,6 +1949,8 @@ sys_end: ;------------------------------------------------------------------------------ align 4 restore_default_cursor_before_killing: + pushfd + cli mov eax, [def_cursor] mov [ecx+APPDATA.cursor], eax @@ -1972,6 +1974,7 @@ restore_default_cursor_before_killing: mov [current_cursor], esi @@: mov [redrawmouse_unconditional], 1 + popfd ; call [draw_pointer] call __sys_draw_pointer ret @@ -2068,8 +2071,10 @@ sysfn_terminate: ; 18.2 = TERMINATE cmp edx, [application_table_status]; clear app table stat jne noatsc and [application_table_status], 0 - noatsc: - noprocessterminate: +noatsc: +; for guarantee the updating data + call change_task +noprocessterminate: ret ;------------------------------------------------------------------------------ sysfn_terminate2: