mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-12-18 14:04:20 +01:00
Fix WSAStartup() error check on Windows
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user