mirror of
https://github.com/Genymobile/scrcpy
synced 2025-01-18 13:11:46 +00:00
Fix WSAStartup() error check on Windows
This commit is contained in:
parent
3d10fbd9b4
commit
0cea7fb24c
@ -30,8 +30,8 @@ bool
|
||||
net_init(void) {
|
||||
#ifdef _WIN32
|
||||
WSADATA wsa;
|
||||
int res = WSAStartup(MAKEWORD(2, 2), &wsa) < 0;
|
||||
if (res < 0) {
|
||||
int res = WSAStartup(MAKEWORD(2, 2), &wsa);
|
||||
if (res) {
|
||||
LOGE("WSAStartup failed with error %d", res);
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user