forked from KolibriOS/kolibrios
SOCKET_receive_stream returns 0 now when there is no data instead of -1.
git-svn-id: svn://kolibrios.org@3461 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
6edb329ec0
commit
2bc923d897
@ -876,11 +876,16 @@ SOCKET_receive_stream:
|
|||||||
|
|
||||||
.block:
|
.block:
|
||||||
test [eax + SOCKET.options], SO_NONBLOCK
|
test [eax + SOCKET.options], SO_NONBLOCK
|
||||||
jnz s_error
|
jnz .return0
|
||||||
|
|
||||||
call SOCKET_block
|
call SOCKET_block
|
||||||
jmp .loop
|
jmp .loop
|
||||||
|
|
||||||
|
.return0:
|
||||||
|
xor ecx, ecx
|
||||||
|
mov [esp+32], ecx
|
||||||
|
ret
|
||||||
|
|
||||||
|
|
||||||
;-----------------------------------------------------------------
|
;-----------------------------------------------------------------
|
||||||
;
|
;
|
||||||
|
Loading…
Reference in New Issue
Block a user