https://bugs.winehq.org/show_bug.cgi?id=31438
--- Comment #187 from Steve Dawson sdawson@pa.metrocast.net --- (In reply to Heiko from comment #186)
Created attachment 50384 [details] Reset WSAerror on successful recv
Reset WSAerror/errno value on successful receive operation, like WS2_sendto already does. There're probably some more places to check for missing error value resetting.
This fixes problems with Qt applications, because Qt also checks WSAGetLastError if WSArecv returns 0 and then thinks some old error still is encountered.
Nice work, I tested the patch with the original dll shipped with Origin and am getting download speeds that match my internet bandwidth.
sha1sum of the dll used 0e8984c60d4321f1d271c379bc96f0abfd1c6dcd Qt5Network.dll
Regards.
Steve.