From f06345297ec0e3bb25da730e0db3bba918721d74 Mon Sep 17 00:00:00 2001 From: "Marat Zakiyanov (Mario79)" Date: Fri, 3 May 2013 22:00:44 +0000 Subject: [PATCH] Restore default cursor before terminating the process. git-svn-id: svn://kolibrios.org@3493 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 b4b6ce3e68..c3be526c15 100644 --- a/kernel/trunk/kernel.asm +++ b/kernel/trunk/kernel.asm @@ -2034,8 +2034,6 @@ restore_default_cursor_before_killing: @@: mov [redrawmouse_unconditional], 1 popfd -; call [draw_pointer] - call __sys_draw_pointer ret ;------------------------------------------------------------------------------ iglobal @@ -3549,6 +3547,13 @@ newct: cmp cl, byte 4 jnz .noterminate .terminate: + pushad + mov ecx, eax + shl ecx, 8 + add ecx, SLOT_BASE + call restore_default_cursor_before_killing + popad + pushad call terminate popad