Windows: if WSA error number is held, use directly.
It must be done this way, as WSAGetLastError returns 0 in these circumstances
Merge pull request #1122 from twhittock/win-errhandle

Windows: if WSA error number is held, use directly.