https://bugs.winehq.org/show_bug.cgi?id=32205
--- Comment #13 from Bruno Jesus 00cpxxx@gmail.com --- The current problem in this bug is that the application attempts to call WSAStringtoAddressA with an empty string, that results in WSAEINVAL (as expected). But the background application is not happy and quit after that so Youku cannot connect to it.
The question is: where did it get that empty IP from and why it was empty?
0024:trace:iphlpapi:GetAdaptersInfo pAdapterInfo 0x33c74c, pOutBufLen 0x33c744 0024:trace:iphlpapi:AllocateAndGetIpForwardTableFromStack table 0x33c680, bOrder 0, heap 0x110000, flags 0x00000000 0024:trace:iphlpapi:AllocateAndGetIpForwardTableFromStack returning ret 0 table 0x18a2c0 0024:trace:iphlpapi:GetAdaptersInfo returning 0 0024:trace:winsock:WSAStringToAddressA ("", 2, (nil), 0x33c638, 0x33c630) sm exited,Error: Unknown error <<<===== application log before quitting
What seems to happen is that the application is trying to list the interfaces and get the IP of a specific interface that does not have an IP, ending up with an empty string. Bug forcing an IP over all empty interfaces (or disabling interfaces without an IP) do not help.