Switched a + to a - so that it makes sense when marking the last node

in the Adapters Info linked list.
This commit is contained in:
Aric Stewart 2003-10-31 04:16:54 +00:00 committed by Alexandre Julliard
parent 2b832f11a5
commit 84ad10bfcd

View File

@ -571,8 +571,10 @@ DWORD WINAPI GetAdaptersInfo(PIP_ADAPTER_INFO pAdapterInfo, PULONG pOutBufLen)
ptr->IpAddressList.IpAddress.String);
toIPAddressString(getInterfaceMaskByIndex(table->indexes[ndx]),
ptr->IpAddressList.IpMask.String);
if (ndx < table->numIndexes + 1)
ptr->Next = (ndx == table->numIndexes - 1) ? NULL : &pAdapterInfo[ndx + 1];
if (ndx < table->numIndexes - 1)
ptr->Next = &pAdapterInfo[ndx + 1];
else
ptr->Next = NULL;
}
ret = NO_ERROR;
}