diff --git a/kernel/trunk/boot/bootvesa.inc b/kernel/trunk/boot/bootvesa.inc index d800261188..4892f46e0e 100644 --- a/kernel/trunk/boot/bootvesa.inc +++ b/kernel/trunk/boot/bootvesa.inc @@ -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] diff --git a/kernel/trunk/network/socket.inc b/kernel/trunk/network/socket.inc index ea1947a7e9..9d197ddf99 100644 --- a/kernel/trunk/network/socket.inc +++ b/kernel/trunk/network/socket.inc @@ -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