bug 475178 - nsStandardURL::SetRef broken in Win32 PGO with new PGO input. r+sr=bz

This commit is contained in:
Ted Mielczarek 2009-02-27 13:36:23 -05:00
parent ce33ba3e88
commit c4c5d3f905

View File

@ -2237,8 +2237,8 @@ nsStandardURL::SetRef(const nsACString &input)
refLen = buf.Length();
}
ReplaceSegment(mRef.mPos, mRef.mLen, ref, refLen);
mPath.mLen += (refLen - mRef.mLen);
PRInt32 shift = ReplaceSegment(mRef.mPos, mRef.mLen, ref, refLen);
mPath.mLen += shift;
mRef.mLen = refLen;
return NS_OK;
}