socket.inc: fix for r2129

git-svn-id: svn://kolibrios.org@2147 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
CleverMouse 2011-09-02 19:48:37 +00:00
parent a3388c45de
commit eca36f7ef4

View File

@ -766,8 +766,10 @@ proc socket_read_packet stdcall
mov ebx, eax
push ecx edx
lea ecx, [eax + SOCKET.lock]
call mutex_lock
pop edx ecx
mov eax, [ebx + SOCKET.rxDataCount] ; get count of bytes
test eax, eax ; if count of bytes is zero..