http://bugs.winehq.org/show_bug.cgi?id=12837
Kai Blin kai.blin@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID
--- Comment #5 from Kai Blin kai.blin@gmail.com 2008-04-27 16:38:38 ---
This is the code around 3247:
if (retval->h_addr_list == 127 && strcmp(name, "localhost") != 0) { /* hostname != "localhost" but has loopback address. replace by our * special address.*/ memcpy(retval->h_addr_list[0], magic_loopback_addr, 4); }
That's not what the code looks like upstream. Check http://source.winehq.org/git/wine.git/?a=blob;f=dlls/ws2_32/socket.c;h=1fe00...
or manually fix the line to be
if (retval->h_addr_list[0][0] == 127 &&
However, if that line is corrupted, others probably are broken as well.