http://bugs.winehq.org/show_bug.cgi?id=29039
Erich Hoover ehoover@mines.edu changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ehoover@mines.edu
--- Comment #3 from Erich Hoover ehoover@mines.edu 2011-11-11 12:05:26 CST --- (In reply to comment #1)
... The strings "" and "0" come from somewhere in msvcr. String "0" comes from a call to "itoa" call few lines above the getaddrinfo call. ...
In this case "0" refers to a service/port, which is a relatively standard way of saying "give me a port, I don't care which one." It appears that the Windows version of getaddrinfo can handle this scenario, whereas the Unix version doesn't understand what to do. The way to resolve this would be to see exactly what Windows places in the "result" ADDRINFO structure and figure out a way to generate the same information when a service/port of "0" is passed to the routine.