Fix incorrect calculation of transport_addr.
This commit is contained in:
parent
28c2ea07ce
commit
f92bbe6c65
|
@ -189,7 +189,7 @@ static BOOL WkstaEnumAdaptersCallback(UCHAR totalLANAs, UCHAR lanaIndex,
|
||||||
transport_addr = (LPWSTR)(*(enumData->pbuf) +
|
transport_addr = (LPWSTR)(*(enumData->pbuf) +
|
||||||
totalLANAs * (sizeof(WKSTA_TRANSPORT_INFO_0) +
|
totalLANAs * (sizeof(WKSTA_TRANSPORT_INFO_0) +
|
||||||
MAX_TRANSPORT_NAME * sizeof(WCHAR)) +
|
MAX_TRANSPORT_NAME * sizeof(WCHAR)) +
|
||||||
(enumData->n_read + MAX_TRANSPORT_ADDR) * sizeof(WCHAR));
|
enumData->n_read * MAX_TRANSPORT_ADDR * sizeof(WCHAR));
|
||||||
|
|
||||||
ifRow.dwIndex = data->ifIndex;
|
ifRow.dwIndex = data->ifIndex;
|
||||||
GetIfEntry(&ifRow);
|
GetIfEntry(&ifRow);
|
||||||
|
|
Loading…
Reference in New Issue