aboutsummaryrefslogtreecommitdiffstats
path: root/main/wine/iphlpapi-fix.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/wine/iphlpapi-fix.patch')
-rw-r--r--main/wine/iphlpapi-fix.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/main/wine/iphlpapi-fix.patch b/main/wine/iphlpapi-fix.patch
new file mode 100644
index 0000000000..6b8fe5548a
--- /dev/null
+++ b/main/wine/iphlpapi-fix.patch
@@ -0,0 +1,15 @@
+diff --git a/dlls/iphlpapi/iphlpapi_main.c b/dlls/iphlpapi/iphlpapi_main.c
+index d734c39..321c0a3 100644
+--- a/dlls/iphlpapi/iphlpapi_main.c
++++ b/dlls/iphlpapi/iphlpapi_main.c
+@@ -1115,6 +1115,10 @@ ULONG WINAPI GetAdaptersAddresses(ULONG family, ULONG flags, PVOID reserved,
+ {
+ if (aa->IfType != IF_TYPE_SOFTWARE_LOOPBACK && aa->OperStatus == IfOperStatusUp)
+ aa->DnsSuffix = dnsSuffix;
++ else
++ /* MSVC runtime requires DnsSuffix to be valid pointer
++ * make it an empty string */
++ aa->DnsSuffix = (WCHAR *)((BYTE*)dnsSuffix + dns_suffix_size - 2);
+ }
+ ret = ERROR_SUCCESS;
+ }