http://bugs.winehq.org/show_bug.cgi?id=29039
--- Comment #6 from K1773R K1773R@darkgamex.ch 2011-11-12 08:48:36 CST --- (In reply to comment #4)
Created attachment 37449 [details] ws2_32: Handle NULL and empty hostname correctly in getaddrinfo.
It turns out that getaddrinfo/GetAddrInfoW treat NULL hostname as "localhost" and an empty hostname as the machine's hostname.
Try this patch.
nice work! thanks, tested and works