You've already forked wine-staging
mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2025-09-12 18:50:20 -07:00
Added iphlpapi-GetBestRoute2 patchset
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
From 593664b03b00092f0db519ce537f62e0c041d28e Mon Sep 17 00:00:00 2001
|
||||
From: Austin English <austinenglish@gmail.com>
|
||||
Date: Sun, 4 Nov 2018 04:05:15 -0600
|
||||
Subject: [PATCH] iphlpapi: Add GetBestRoute2 stub.
|
||||
|
||||
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=44850
|
||||
Signed-off-by: Austin English <austinenglish@gmail.com>
|
||||
---
|
||||
dlls/iphlpapi/iphlpapi.spec | 2 +-
|
||||
dlls/iphlpapi/iphlpapi_main.c | 15 +++++++++++++++
|
||||
2 files changed, 16 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/dlls/iphlpapi/iphlpapi.spec b/dlls/iphlpapi/iphlpapi.spec
|
||||
index b4f77be..7a447e7 100644
|
||||
--- a/dlls/iphlpapi/iphlpapi.spec
|
||||
+++ b/dlls/iphlpapi/iphlpapi.spec
|
||||
@@ -77,7 +77,7 @@
|
||||
@ stdcall GetBestInterfaceEx( ptr ptr )
|
||||
@ stub GetBestInterfaceFromStack
|
||||
@ stdcall GetBestRoute( long long ptr )
|
||||
-#@ stub GetBestRoute2
|
||||
+@ stdcall GetBestRoute2( ptr long ptr ptr long ptr ptr )
|
||||
@ stub GetBestRouteFromStack
|
||||
#@ stub GetCurrentThreadCompartmentId
|
||||
@ stdcall GetExtendedTcpTable( ptr ptr long long long long )
|
||||
diff --git a/dlls/iphlpapi/iphlpapi_main.c b/dlls/iphlpapi/iphlpapi_main.c
|
||||
index 5df4cd8..ae8f7b4 100644
|
||||
--- a/dlls/iphlpapi/iphlpapi_main.c
|
||||
+++ b/dlls/iphlpapi/iphlpapi_main.c
|
||||
@@ -3313,3 +3313,18 @@ DWORD WINAPI GetIpInterfaceTable(ADDRESS_FAMILY family, PMIB_IPINTERFACE_TABLE *
|
||||
FIXME("(%u %p): stub\n", family, table);
|
||||
return ERROR_NOT_SUPPORTED;
|
||||
}
|
||||
+
|
||||
+/******************************************************************
|
||||
+ * GetIpInterfaceTable (IPHLPAPI.@)
|
||||
+ */
|
||||
+DWORD WINAPI GetBestRoute2(NET_LUID *luid, NET_IFINDEX index,
|
||||
+ const SOCKADDR_INET *source, const SOCKADDR_INET *destination,
|
||||
+ ULONG options, PMIB_IPFORWARD_ROW2 bestroute,
|
||||
+ SOCKADDR_INET *bestaddress)
|
||||
+{
|
||||
+ static int once;
|
||||
+ if (!once++)
|
||||
+ FIXME("(%p, %d, %p, %p, 0x%08x, %p, %p): stub\n", luid, index, source,
|
||||
+ destination, options, bestroute, bestaddress);
|
||||
+ return ERROR_NOT_SUPPORTED;
|
||||
+}
|
||||
--
|
||||
1.9.1
|
||||
|
||||
1
patches/iphlpapi-GetBestRoute2/definition
Normal file
1
patches/iphlpapi-GetBestRoute2/definition
Normal file
@@ -0,0 +1 @@
|
||||
Fixes: [44850] iphlpapi: Add GetBestRoute2 stub.
|
||||
Reference in New Issue
Block a user