[0.1.x] fixed : typedVar __str__ converter - once again

git-svn-id: https://pykd.svn.codeplex.com/svn@74850 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
SND\kernelnet_cp 2012-03-11 15:13:09 +00:00 committed by Mikhail I. Izmestev
parent 1a87bf5e64
commit 2237694a8b
2 changed files with 3 additions and 3 deletions

View File

@ -222,7 +222,7 @@ std::string UdtTypedVar::print()
{
std::stringstream sstr;
sstr << "struct/class: " << m_typeInfo->getName() << " " << m_varData->asString();
sstr << "struct/class: " << m_typeInfo->getName() << " " << m_varData->asString() << std::endl;
for ( ULONG i = 0; i < m_typeInfo->getFieldCount(); ++i )
{

View File

@ -463,10 +463,10 @@ TypeInfoPtr UdtTypeInfo::getField( const std::string &fieldName )
TypeInfoPtr UdtTypeInfo::getFieldByIndex( ULONG index )
{
if ( index >= m_dia->getChildCount() )
if ( index >= m_dia->getChildCount(SymTagData) )
throw TypeException( m_dia->getName(), ": field not found" );
pyDia::SymbolPtr field = m_dia->getChildByIndex(index);
pyDia::SymbolPtr field = m_dia->getChildByIndex(index, SymTagData);
if ( !field )
throw TypeException( m_dia->getName(), ": field not found" );