https://bugs.winehq.org/show_bug.cgi?id=38144
--- Comment #1 from Bruno Jesus 00cpxxx@gmail.com --- 0039:trace:winsock:WSAStartup verReq=2 0039:trace:winsock:WSAStartup succeeded starts: 1 0039:trace:wininet:DllMain 0x7ce10000,1,(nil) 0039:trace:wininet:InternetGetConnectedState (0x24432d8, 0x00000000) 0039:warn:wininet:InternetGetConnectedState always returning LAN connection. 0039:trace:wininet:DllMain 0x7ce10000,0,(nil) 0039:trace:winsock:WSACleanup pending cleanups: 0 0039:trace:winsock:WS_gethostname name 0x2442ecc, len 1024 0039:trace:winsock:WS_gethostname <- 'gyebro-desktop' 0039:trace:winsock:WS_socket af=2 type=1 protocol=6 0039:trace:winsock:WSASocketA af=2 type=1 protocol=6 protocol_info=(nil) group=0 flags=0x1 0039:trace:winsock:WSASocketW af=2 type=1 protocol=6 protocol_info=(nil) group=0 flags=0x1 0039:warn:winsock:WSASocketW failed, error 10093!
Since WSACleanup was called somewhere winsock is no longer initialized so WSASocket returns error as expected. 10093 => WSANOTINITIALISED