Skip to content

Commit

Permalink
(Netplay/LAN Discovery) Disable GetBestRoute for UWP (#13518)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cthulhu-throwaway authored Jan 20, 2022
1 parent 5241d3e commit b71be7e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions network/netplay/netplay_frontend.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -45,7 +45,7 @@
#include <string/stdstring.h>
#include <file/file_path.h>

#ifdef _WIN32
#if defined(_WIN32) && !defined(__WINRT__)
#include <iphlpapi.h>
#endif

Expand Down Expand Up @@ -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"),
Expand Down

0 comments on commit b71be7e

Please sign in to comment.