mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-26 00:26:52 +03:00
Fixed socket_ring_write in net branch.
git-svn-id: svn://kolibrios.org@2404 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
4aee41218a
commit
946e05cb81
@ -1165,15 +1165,14 @@ SOCKET_ring_write:
|
||||
|
||||
ret
|
||||
|
||||
.too_large:
|
||||
mov ecx, SOCKET_MAXDATA ; calculate number of bytes available in buffer
|
||||
.too_large: ; update size, we will fill buffer completely
|
||||
sub [eax + RING_BUFFER.size], SOCKET_MAXDATA
|
||||
sub ecx, [eax + RING_BUFFER.size]
|
||||
jae .full
|
||||
mov [eax + RING_BUFFER.size], SOCKET_MAXDATA
|
||||
|
||||
mov [eax + RING_BUFFER.size], SOCKET_MAXDATA ; update size, we will fill buffer completely
|
||||
jmp .copy
|
||||
test ecx, ecx
|
||||
jnz .copy
|
||||
|
||||
.full:
|
||||
DEBUGF 2,"SOCKET_ring_write: ring buffer is full!\n"
|
||||
xor ecx, ecx
|
||||
ret
|
||||
|
Loading…
Reference in New Issue
Block a user