https://bugs.winehq.org/show_bug.cgi?id=54995
--- Comment #1 from Bernhard Übelacker bernhardu@mailbox.org --- Created attachment 74547 --> https://bugs.winehq.org/attachment.cgi?id=74547 Workaround: Disable check for local socket handles.
Hello, it looks like git uses dup/DuplicateHandle to duplicate a socket handle.
ws2_32 contains a process local socket_list, maybe to avoid wineserver roundtrips.
Unfortunately due to DuplicateHandle the duplicate is not found in sock_list, therefore ws2_32 returns early a failure.
Attached workaround makes git work. It just disables these checks for the process local socket_list, therefore doing the wineserver calls.
Unfortunately I don't see an easy way to notify ws2_32 from ntdll/DuplicateHandle.