diff --git a/src/DotNet/MD/CompressedMetadata.cs b/src/DotNet/MD/CompressedMetadata.cs index 680620558..7b6ce8b7c 100644 --- a/src/DotNet/MD/CompressedMetadata.cs +++ b/src/DotNet/MD/CompressedMetadata.cs @@ -148,7 +148,7 @@ RidList GetRidList(MDTable tableSource, uint tableSourceRid, int colIndex, MDTab uint lastRid = tableDest.Rows + 1; if (startRid == 0 || startRid >= lastRid) return RidList.Empty; - uint endRid = !hasNext || (nextListRid == 0 && tableSourceRid + 1 == tableSource.Rows && tableDest.Rows == 0xFFFF) ? lastRid : nextListRid; + uint endRid = !hasNext || (nextListRid == 0 && tableDest.Rows == 0xFFFF) ? lastRid : nextListRid; if (endRid < startRid) endRid = startRid; if (endRid > lastRid)