Return length of WS_sockaddr structure in ws_sockaddr_u2ws.

This commit is contained in:
Paul Rupe 2002-01-09 20:29:17 +00:00 committed by Alexandre Julliard
parent 064972768d
commit 06ffc1aba3
1 changed files with 1 additions and 0 deletions

View File

@ -896,6 +896,7 @@ int ws_sockaddr_u2ws(const struct sockaddr* uaddr, int uaddrlen, struct WS_socka
default:
/* No conversion needed */
*wsaddrlen = min(*wsaddrlen,uaddrlen);
memcpy(wsaddr,uaddr,*wsaddrlen);
res=(*wsaddrlen<uaddrlen?-1:0);
}