Make string size available in value location.

This commit is contained in:
Rene Gollent 2012-12-08 18:29:12 -05:00
parent 2c32e74360
commit 84a00bf887

View File

@ -84,6 +84,12 @@ CStringValueNode::ResolvedLocationAndValue(ValueLoader* valueLoader,
ValuePieceLocation piece;
piece.SetToMemory(addressData.ToUInt64());
error = valueLoader->LoadStringValue(addressData, maxSize, valueData);
if (error != B_OK)
return error;
piece.size = valueData.Length();
ValueLocation* stringLocation = new(std::nothrow) ValueLocation(
valueLoader->GetArchitecture()->IsBigEndian(), piece);