socket.inc: fix for r2129
git-svn-id: svn://kolibrios.org@2147 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
a3388c45de
commit
eca36f7ef4
@ -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..
|
||||
|
Loading…
Reference in New Issue
Block a user