Re: WINSOCK: Implement WSAAddressToStringA/W
3 Nov
2004
3 Nov
'04
8:22 p.m.
Hans Leidekker <hans(a)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(a)winehq.org
7708
Age (days ago)
7708
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard