20 Jan
2026
20 Jan
'26
8:06 p.m.
What about Windows, though? Can we test Windows in analogous setups? If Windows never returns NULL then we should probably follow that, and work around it in ws2_32. FWIW, MSDN does say this: "The getaddrinfo function can return success when the AI_CANONNAME flag is set, yet the ai_canonname member in the associated addrinfo structure is NULL. Therefore, the recommended use of the AI_CANONNAME flag includes testing whether the ai_canonname member in the associated addrinfo structure is NULL." But we all know how much to trust MSDN. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/9938#note_127443