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

This commit is contained in:
Guido Barzini 2007-12-03 21:58:05 +00:00 committed by Alexandre Julliard
parent e548864805
commit 00a961c5d4

View file

@ -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];