(Netplay/LAN Discovery) Disable GetBestRoute for UWP (#13518)
This commit is contained in:
parent
5241d3e5d6
commit
b71be7efd2
|
@ -20,7 +20,7 @@
|
||||||
#pragma comment(lib, "ws2_32")
|
#pragma comment(lib, "ws2_32")
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(_WIN32) && defined(_MSC_VER)
|
#if defined(_WIN32) && !defined(__WINRT__) && defined(_MSC_VER)
|
||||||
#pragma comment(lib, "Iphlpapi")
|
#pragma comment(lib, "Iphlpapi")
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@
|
||||||
#include <string/stdstring.h>
|
#include <string/stdstring.h>
|
||||||
#include <file/file_path.h>
|
#include <file/file_path.h>
|
||||||
|
|
||||||
#ifdef _WIN32
|
#if defined(_WIN32) && !defined(__WINRT__)
|
||||||
#include <iphlpapi.h>
|
#include <iphlpapi.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -247,7 +247,7 @@ bool init_netplay_discovery(void)
|
||||||
|
|
||||||
if (ret)
|
if (ret)
|
||||||
{
|
{
|
||||||
#ifdef _WIN32
|
#if defined(_WIN32) && !defined(__WINRT__)
|
||||||
MIB_IPFORWARDROW ip_forward;
|
MIB_IPFORWARDROW ip_forward;
|
||||||
|
|
||||||
if (GetBestRoute(inet_addr("223.255.255.255"),
|
if (GetBestRoute(inet_addr("223.255.255.255"),
|
||||||
|
|
Loading…
Reference in New Issue