From b71be7efd2126ad94759726d8e54724482cffde2 Mon Sep 17 00:00:00 2001 From: Cthulhu-throwaway <96153783+Cthulhu-throwaway@users.noreply.github.com> Date: Thu, 20 Jan 2022 10:52:11 -0300 Subject: [PATCH] (Netplay/LAN Discovery) Disable GetBestRoute for UWP (#13518) --- network/netplay/netplay_frontend.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/network/netplay/netplay_frontend.c b/network/netplay/netplay_frontend.c index 38757e40d301..facdd79f89bf 100644 --- a/network/netplay/netplay_frontend.c +++ b/network/netplay/netplay_frontend.c @@ -20,7 +20,7 @@ #pragma comment(lib, "ws2_32") #endif -#if defined(_WIN32) && defined(_MSC_VER) +#if defined(_WIN32) && !defined(__WINRT__) && defined(_MSC_VER) #pragma comment(lib, "Iphlpapi") #endif @@ -45,7 +45,7 @@ #include #include -#ifdef _WIN32 +#if defined(_WIN32) && !defined(__WINRT__) #include #endif @@ -247,7 +247,7 @@ bool init_netplay_discovery(void) if (ret) { -#ifdef _WIN32 +#if defined(_WIN32) && !defined(__WINRT__) MIB_IPFORWARDROW ip_forward; if (GetBestRoute(inet_addr("223.255.255.255"),