Retrieve correct error messages on Windows
Retrieve correct error messages on Windows

For sockets functions, Windows does not store error codes in errno, so
perror() does not print any error. Use WSAGetLastError() instead.

Refs #2624 <https://github.com/Genymobile/scrcpy/issues/2624>

Genymobile/scrcpy,Genymobile/scrcpy,Genymobile/scrcpy