Commit 06ffc1ab authored by Paul Rupe's avatar Paul Rupe Committed by Alexandre Julliard

Return length of WS_sockaddr structure in ws_sockaddr_u2ws.

parent 06497276
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment