Skip to content

Commit b71be7e

Browse files
author
Cthulhu-throwaway
authored
(Netplay/LAN Discovery) Disable GetBestRoute for UWP (#13518)
1 parent 5241d3e commit b71be7e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

network/netplay/netplay_frontend.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#pragma comment(lib, "ws2_32")
2121
#endif
2222

23-
#if defined(_WIN32) && defined(_MSC_VER)
23+
#if defined(_WIN32) && !defined(__WINRT__) && defined(_MSC_VER)
2424
#pragma comment(lib, "Iphlpapi")
2525
#endif
2626

@@ -45,7 +45,7 @@
4545
#include <string/stdstring.h>
4646
#include <file/file_path.h>
4747

48-
#ifdef _WIN32
48+
#if defined(_WIN32) && !defined(__WINRT__)
4949
#include <iphlpapi.h>
5050
#endif
5151

@@ -247,7 +247,7 @@ bool init_netplay_discovery(void)
247247

248248
if (ret)
249249
{
250-
#ifdef _WIN32
250+
#if defined(_WIN32) && !defined(__WINRT__)
251251
MIB_IPFORWARDROW ip_forward;
252252

253253
if (GetBestRoute(inet_addr("223.255.255.255"),

0 commit comments

Comments
 (0)