More of the same

git-svn-id: svn://kolibrios.org@2303 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
hidnplayr 2011-11-07 22:36:05 +00:00
parent b2a283b9fe
commit 292477fb7c

View File

@ -631,7 +631,7 @@ SOCKET_accept:
mov eax, [esi] mov eax, [esi]
call SOCKET_ptr_to_num call SOCKET_ptr_to_num
jz s_error jz s_error
mov dword [esp+32], eax mov [esp+32], eax
ret ret
@ -725,7 +725,7 @@ SOCKET_receive_dgram:
push [esi + socket_queue_entry.buf_ptr] ; save the buffer addr so we can clear it later push [esi + socket_queue_entry.buf_ptr] ; save the buffer addr so we can clear it later
mov esi, [esi + socket_queue_entry.data_ptr] mov esi, [esi + socket_queue_entry.data_ptr]
DEBUGF 1,"Source buffer: %x, real addr: %x\n", [esp], esi DEBUGF 1,"Source buffer: %x, real addr: %x\n", [esp], esi
mov dword[esp+32+4], ecx ; return number of bytes copied mov [esp+32+4], ecx ; return number of bytes copied
; copy the data ; copy the data
shr ecx, 1 shr ecx, 1
@ -760,7 +760,7 @@ SOCKET_receive_tcp:
call SOCKET_ring_read call SOCKET_ring_read
call SOCKET_ring_free call SOCKET_ring_free
mov dword[esp+32], ecx ; return number of bytes copied mov [esp+32], ecx ; return number of bytes copied
ret ret
@ -798,7 +798,7 @@ SOCKET_send_udp:
call UDP_output call UDP_output
mov dword [esp+32], 0 mov [esp+32], eax
ret ret
@ -835,7 +835,7 @@ SOCKET_send_icmp:
call ICMP_output_raw call ICMP_output_raw
mov dword [esp+32], 0 mov [esp+32], eax
ret ret
@ -1058,7 +1058,7 @@ SOCKET_input:
DEBUGF 1,"SOCKET_input: socket=%x, data=%x size=%u\n", eax, esi, ecx DEBUGF 1,"SOCKET_input: socket=%x, data=%x size=%u\n", eax, esi, ecx
mov dword[esp+4], ecx mov [esp+4], ecx
push esi push esi
mov esi, esp mov esi, esp