WININET: lpvStatusInfo in INTERNET_STATUS_NAME_RESOLVED, INTERNET_STATUS_CONNECTING_TO_SERVER, and INTERNET_STATUS_CONNECTED_TO_SERVER should be strings, not sockaddr_in.

Jacek Caban jacek at codeweavers.com
Mon Jan 2 10:58:35 CST 2006


Robert Shearman wrote:

>
> Like the comment says, it is not thread-safe. I don't think it is wise 
> to delibrately introduce race conditions like this and it tends to 
> cause problems with applications that rely heavily on multiple threads 
> (such as iTunes). It would be better to use the thread-safe inet_ntop 
> (which also has the bonus of supporting IPv6) or the ws2_32 version of 
> inet_ntoa.
>
This version uses inet_ntop. The other bonus is simpler code.
Thanks for your comments.

ChangeLog:
lpvStatusInfo in INTERNET_STATUS_NAME_RESOLVED, 
INTERNET_STATUS_CONNECTING_TO_SERVER
and INTERNET_STATUS_CONNECTED_TO_SERVER should be strings, not sockaddr_in.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-lpvStatusInfo-in-INTERNET_STATUS_NAME_RESOLVED-INTERNET_STATUS_CONNECTING_TO_SERVER.txt
Type: application/x-crossover-txt
Size: 4474 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20060102/1c3cafd3/0001-lpvStatusInfo-in-INTERNET_STATUS_NAME_RESOLVED-INTERNET_STATUS_CONNECTING_TO_SERVER.bin


More information about the wine-patches mailing list