Bugfix in boot screen: avoid hangup in some situations

git-svn-id: svn://kolibrios.org@738 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Evgeny Grechnikov (Diamond) 2008-02-14 16:28:40 +00:00
parent d09388a32f
commit da14e74a6d
2 changed files with 6 additions and 2 deletions

View File

@ -386,7 +386,9 @@ check_first_parm:
.next_step:
sub ax,size_of_step*long_v_table
cmp ax,modes_table
jb .zerro
jae @f
mov ax,modes_table
@@:
mov word[home_cursor],ax
push word [preboot_graph]

View File

@ -343,8 +343,10 @@ sot_exit:
;
;***************************************************************************
socket_close:
Index2RealAddr ebx
mov eax, 0xFFFFFFFF ; assume this operation will fail..
cmp ebx, NUM_SOCKETS
jae sc_exit
Index2RealAddr ebx
cmp [ebx + SOCKET.Status], dword SOCK_EMPTY
jz sc_exit