https://bugs.winehq.org/show_bug.cgi?id=40865
--- Comment #2 from Bruno Jesus 00cpxxx@gmail.com --- Created attachment 54884 --> https://bugs.winehq.org/attachment.cgi?id=54884 patch
I'm guessing the problem could be gethostbyname_r returning ENOBUFS instead of ERANGE so the attached patch should help if this is the case, if not try the debug patch.