diff --git a/kernel/trunk/network/socket.inc b/kernel/trunk/network/socket.inc index 5cd4e38bf4..16616c2982 100644 --- a/kernel/trunk/network/socket.inc +++ b/kernel/trunk/network/socket.inc @@ -801,8 +801,9 @@ proc socket_read_packet stdcall .exit: lea ecx, [ebx + SOCKET.lock] + mov ebx,eax call mutex_unlock - mov eax, edx + mov eax,ebx ret ; at last, exit .error: @@ -814,8 +815,9 @@ proc socket_read_packet stdcall mov [ebx + SOCKET.rxDataCount], esi ; store new count (zero) call .start_copy lea ecx, [ebx + SOCKET.lock] + mov ebx,eax call mutex_unlock - mov eax, edx + mov eax,ebx ret .start_copy: