http://bugs.winehq.org/show_bug.cgi?id=12302
--- Comment #73 from Andreas Blochberger andreas@blochberger.net 2008-07-17 05:01:43 --- Well, its the first Google found, but anyways, for all platforms, the behaviour is somewhat undefind, if no error code was returned. A call to WSAGetLastError should of course be imitiadly after a failed function, because some other function *might* reset the last error. Function can reset the last error on succes, but they don't have to. WSAGetLastError only return valid information, if a preceeding function failed. But thats academic. Wine has to behave just like Windows here.