[0.2.x] fixed : module::getTypedVarByTypeName

git-svn-id: https://pykd.svn.codeplex.com/svn@81603 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
SND\kernelnet_cp 2012-12-03 07:43:04 +00:00 committed by Mikhail I. Izmestev
parent e521125903
commit a2e37c415e

View File

@ -244,6 +244,8 @@ Module::getTypedVarByName( const std::string &symName )
TypedVarPtr TypedVarPtr
Module::getTypedVarByTypeName( const std::string &typeName, ULONG64 offset ) Module::getTypedVarByTypeName( const std::string &typeName, ULONG64 offset )
{ {
offset = addr64(offset);
TypeInfoPtr typeInfo = getTypeByName( typeName ); TypeInfoPtr typeInfo = getTypeByName( typeName );
return TypedVar::getTypedVar(typeInfo, VarDataMemory::factory(offset) ); return TypedVar::getTypedVar(typeInfo, VarDataMemory::factory(offset) );