aboutsummaryrefslogtreecommitdiffstats
path: root/main/wine/iphlpapi-fix.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-12-22 10:49:52 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-12-22 10:51:49 +0000
commitca2e8c04271d96842ae9a4a6d7f5d163938eabb5 (patch)
treec8d73c4c59c901fe5f39af744af4292c01419781 /main/wine/iphlpapi-fix.patch
parent09125eedd136119a1b577153329afcf92133dddf (diff)
downloadaports-ca2e8c04271d96842ae9a4a6d7f5d163938eabb5.tar.bz2
aports-ca2e8c04271d96842ae9a4a6d7f5d163938eabb5.tar.xz
main/wine: network fix
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;
+ }