Commit fae847ad authored by Paul Gofman's avatar Paul Gofman Committed by Alexandre Julliard

iphlpapi: Correctly index dynamic data array.

parent 6b151e69
......@@ -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:
......
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