Bugfix in SOCKET_connect

git-svn-id: svn://kolibrios.org@4035 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
hidnplayr 2013-10-15 16:18:58 +00:00
parent a48c8ab399
commit f39767f1f2
3 changed files with 8 additions and 7 deletions

View File

@ -922,10 +922,10 @@ IPv4_get_frgmnt_num:
align 4 align 4
IPv4_connect: IPv4_connect:
pusha push eax edx
lea ecx, [eax + SOCKET.mutex] lea ecx, [eax + SOCKET.mutex]
call mutex_lock call mutex_lock
popa pop edx eax
; Fill in local IP ; Fill in local IP
cmp [eax + IP_SOCKET.LocalIP], 0 cmp [eax + IP_SOCKET.LocalIP], 0
@ -937,8 +937,9 @@ IPv4_connect:
pushd [edx + 4] pushd [edx + 4]
pop [eax + IP_SOCKET.RemoteIP] pop [eax + IP_SOCKET.RemoteIP]
; Set up data receiving queue
push eax push eax
init_queue (eax + SOCKET_QUEUE_LOCATION) ; Set up data receiving queue init_queue (eax + SOCKET_QUEUE_LOCATION)
pop eax pop eax
lea ecx, [eax + SOCKET.mutex] lea ecx, [eax + SOCKET.mutex]

View File

@ -89,10 +89,10 @@ TCP_connect:
test [eax + SOCKET.state], SS_ISCONNECTED test [eax + SOCKET.state], SS_ISCONNECTED
jnz .eisconn jnz .eisconn
push eax push eax edx
lea ecx, [eax + SOCKET.mutex] lea ecx, [eax + SOCKET.mutex]
call mutex_lock call mutex_lock
pop eax pop edx eax
; Fill in local IP ; Fill in local IP
cmp [eax + IP_SOCKET.LocalIP], 0 cmp [eax + IP_SOCKET.LocalIP], 0

View File

@ -327,10 +327,10 @@ UDP_connect:
call UDP_disconnect call UDP_disconnect
@@: @@:
push eax push eax edx
lea ecx, [eax + SOCKET.mutex] lea ecx, [eax + SOCKET.mutex]
call mutex_lock call mutex_lock
pop eax pop edx eax
; Fill in local IP ; Fill in local IP
cmp [eax + IP_SOCKET.LocalIP], 0 cmp [eax + IP_SOCKET.LocalIP], 0