[Wine] getaddrinfo confusion (wine 1.5.5)

Emanuel Rietveld codehotter at gmail.com
Fri Jun 1 07:35:39 CDT 2012


On 06/01/2012 01:45 PM, lahmbi5678 wrote:
> Hi,
>
> I'm not sure, if this will be helpful, but years ago there was a bug in wine with empty or malformatted hostnames. What does your hostname look like, is it just an empty string or something like "localhost", "127.0.0.1"? Maybe setting it to another value might help.
>

My hostname is "seo" and this is what gets passed down to native 
getaddrinfo too (I recompiled with an extra TRACE call just to see).

When I call native getaddrinfo with ("seo", "0", phints, ppResult) from 
a test program it succeeds (return value 0), but when native getaddrinfo 
is called from wine's getaddrinfo in dlls/ws2_32/socket.c with the exact 
same values, it fails with EAI_NONAME (return value -2).



More information about the wine-users mailing list