Guido Barzini : iphlpapi: Restore lost initialisation of ptr-> AddressLength in GetAdaptersInfo.

Alexandre Julliard julliard at winehq.org
Tue Dec 4 13:25:24 CST 2007


Module: wine
Branch: master
Commit: 00a961c5d4f930afd3cd38bcbef2ddd4898ea5a9
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=00a961c5d4f930afd3cd38bcbef2ddd4898ea5a9

Author: Guido Barzini <gnb10 at gnb10.uklinux.net>
Date:   Mon Dec  3 21:58:05 2007 +0000

iphlpapi: Restore lost initialisation of ptr->AddressLength in GetAdaptersInfo.

---

 dlls/iphlpapi/iphlpapi_main.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/iphlpapi/iphlpapi_main.c b/dlls/iphlpapi/iphlpapi_main.c
index 14a6fa4..43ea323 100644
--- a/dlls/iphlpapi/iphlpapi_main.c
+++ b/dlls/iphlpapi/iphlpapi_main.c
@@ -735,6 +735,7 @@ DWORD WINAPI GetAdaptersInfo(PIP_ADAPTER_INFO pAdapterInfo, PULONG pOutBufLen)
 
               /* on Win98 this is left empty, but whatever */
               getInterfaceNameByIndex(table->indexes[ndx], ptr->AdapterName);
+              ptr->AddressLength = sizeof(ptr->Address);
               getInterfacePhysicalByIndex(table->indexes[ndx],
                &ptr->AddressLength, ptr->Address, &ptr->Type);
               ptr->Index = table->indexes[ndx];




More information about the wine-cvs mailing list