Fix incorrect calculation of transport_addr.

This commit is contained in:
Huw Davies 2003-12-11 04:26:38 +00:00 committed by Alexandre Julliard
parent 28c2ea07ce
commit f92bbe6c65
1 changed files with 1 additions and 1 deletions

View File

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