WINSOCK: Implement WSAAddressToStringA/W

Alexandre Julliard julliard at winehq.org
Wed Nov 3 14:22:40 CST 2004


Hans Leidekker <hans at it.vu.nl> writes:

> +    if (stringW)
> +    {
> +        ret = WSAAddressToStringW( sockaddr, len, NULL, stringW, &lenstrW );
> +        *lenstr = lenstrW / sizeof(WCHAR);

To be really correct you have to use WideCharToMultiByte to compute
the ASCII length. Though in this case it would probably be easier to
just duplicate the code and do a simple sprintf in the A function
instead of trying to call the W function.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list