Commit f92bbe6c authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

Fix incorrect calculation of transport_addr.

parent 28c2ea07
......@@ -189,7 +189,7 @@ static BOOL WkstaEnumAdaptersCallback(UCHAR totalLANAs, UCHAR lanaIndex,
transport_addr = (LPWSTR)(*(enumData->pbuf) +
totalLANAs * (sizeof(WKSTA_TRANSPORT_INFO_0) +
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;
GetIfEntry(&ifRow);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment