[Bug 31438] [EA Origin]Unable to download game since the new version

wine-bugs at winehq.org wine-bugs at winehq.org
Mon Jan 5 08:19:10 CST 2015


https://bugs.winehq.org/show_bug.cgi?id=31438

--- Comment #194 from Heiko <lil_tux at web.de> ---
Created attachment 50410
  --> https://bugs.winehq.org/attachment.cgi?id=50410
ws2_32 test for non-overlapping, non-blocking WSARecv

A test case for non-overlapping, non-blocking WSARecv, that basically boils
down to testing error handling and the resetting of the error code. This is
needed for applications that check WSAGetLastError() even on successful
returning of WSARecv, resulting in connection termination and/or undefined
behaviour. A prominent example being Qt's
QNativeSocketEnginePrivate::nativeRead [1]. I guess Windows does reset the
error value to 0.

The testcase fails with unpatched WSARecv in the receiver thread, works with
patched version.

Probably could be merged into existing test_WSARecv(), though I'm unsure on how
that completion stuff affects things.


[1]
https://qt.gitorious.org/qt/qtbase/source/876c2164f43a54fc4b98184a2f016526383524c6:src/network/socket/qnativesocketengine_win.cpp#L1394

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list