Fixed socket_ring_write in net branch.

git-svn-id: svn://kolibrios.org@2404 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
hidnplayr 2012-02-25 13:02:09 +00:00
parent 4aee41218a
commit 946e05cb81

View File

@ -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