WINSOCK: Implement WSAAddressToStringA/W
Hans Leidekker
hans at it.vu.nl
Thu Nov 4 10:09:17 CST 2004
On Wednesday 3 November 2004 21:22, Alexandre Julliard wrote:
> 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.
OK, this improved patch duplicates the implementation. It also handles
port numbers now (duh!) and supplies tests for WSAAddressToString{A,W}
and their counterparts WSAStringToAddress{A,W}.
-Hans
Changelog:
Implement WSAAddressToString{A,W}.
Add tests for WSAAddressToString{A,W} and WSAStringToAddress{A,W}.
Add TRACEs to WSAStringToAddress{A,W}.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winsock_socket_c_04.diff
Type: text/x-diff
Size: 16060 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20041104/156e8338/winsock_socket_c_04.bin
More information about the wine-patches
mailing list