From f92bbe6c655b717b9d9d9d2cdca9f7dfb6a9cfef Mon Sep 17 00:00:00 2001 From: Huw Davies Date: Thu, 11 Dec 2003 04:26:38 +0000 Subject: [PATCH] Fix incorrect calculation of transport_addr. --- dlls/netapi32/wksta.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/netapi32/wksta.c b/dlls/netapi32/wksta.c index f0c5565d7d1..35510060db7 100644 --- a/dlls/netapi32/wksta.c +++ b/dlls/netapi32/wksta.c @@ -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);