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:
hidnplayr 2013-04-09 11:43:59 +00:00
parent 6edb329ec0
commit 2bc923d897

View File

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