iphlpapi: Correctly index dynamic data array.

Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
This commit is contained in:
Paul Gofman 2022-06-20 20:11:31 -05:00 committed by Alexandre Julliard
parent 6b151e6937
commit fae847adcf

View file

@ -2344,7 +2344,8 @@ DWORD WINAPI GetIpNetTable( MIB_IPNETTABLE *table, ULONG *size, BOOL sort )
memset( row->bPhysAddr + row->dwPhysAddrLen, 0,
sizeof(row->bPhysAddr) - row->dwPhysAddrLen );
row->dwAddr = keys[i].addr.s_addr;
switch (dyn->state)
switch (dyn[i].state)
{
case NlnsUnreachable:
case NlnsIncomplete: