replace 3 separate calls to WSAGetLastError() with 1
Merge pull request #4390

6dc90ed replace 3 separate calls to WSAGetLastError() with 1 (Philip Kaufmann)