From 8dffd5ba5fbe88b8bc568dcdf25503b2d7e436b9 Mon Sep 17 00:00:00 2001 From: "Sergey Semyonov (Serge)" Date: Fri, 4 Apr 2008 14:49:16 +0000 Subject: [PATCH] fix cursors in EGA/VGA modes git-svn-id: svn://kolibrios.org@786 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/video/cursors.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kernel/trunk/video/cursors.inc b/kernel/trunk/video/cursors.inc index 40d014d9c4..b7618c05f2 100644 --- a/kernel/trunk/video/cursors.inc +++ b/kernel/trunk/video/cursors.inc @@ -356,6 +356,9 @@ proc load_cursor stdcall, src:dword, flags:dword endl xor eax, eax + cmp [create_cursor], eax + je .fail2 + mov [handle], eax cmp word [flags], LOAD_FROM_FILE jne @F @@ -386,6 +389,7 @@ proc load_cursor stdcall, src:dword, flags:dword pop ebx .fail: mov eax, [handle] +.fail2: ret endp