From 0702be86d8b0dbdba2a74f4a0638f40457a30e51 Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Mon, 27 Feb 2023 19:58:20 +0100 Subject: [PATCH] Accept Windows Sockets from version 1.1 Version 2.2 is probably not necessary (1.1 is the version required by FFmpeg when network is enabled). Refs Refs --- app/src/util/net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/util/net.c b/app/src/util/net.c index c762a10f..67317ead 100644 --- a/app/src/util/net.c +++ b/app/src/util/net.c @@ -30,7 +30,7 @@ bool net_init(void) { #ifdef _WIN32 WSADATA wsa; - int res = WSAStartup(MAKEWORD(2, 2), &wsa); + int res = WSAStartup(MAKEWORD(1, 1), &wsa); if (res) { LOGE("WSAStartup failed with error %d", res); return false;