Display and control your Android device
Fix WSAStartup() error check on Windows
Romain Vimont0cea7fb24cf8
diff --git a/app/src/util/net.c b/app/src/util/net.cindex ed4882cd..c762a10f 100644--- a/app/src/util/net.c+++ b/app/src/util/net.c@@ -30,8 +30,8 @@ boolnet_init(void) {#ifdef _WIN32WSADATA 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;}