[~] updated : typedVar routine will return None if varibales's address is invalid.

git-svn-id: https://pykd.svn.codeplex.com/svn@61490 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
SND\kernelnet_cp 2011-02-15 08:19:12 +00:00
parent a7bd2fd5e8
commit 4ae55470b2

View File

@ -7,6 +7,7 @@
#include "dbgexcept.h" #include "dbgexcept.h"
#include "dbgmem.h" #include "dbgmem.h"
#include "dbgsystem.h" #include "dbgsystem.h"
#include "dbgmem.h"
using namespace std; using namespace std;
@ -319,6 +320,9 @@ TypeInfo::TypeInfo( const std::string &moduleName, const std::string &typeName
boost::python::object boost::python::object
TypeInfo::load( ULONG64 addr ) const TypeInfo::load( ULONG64 addr ) const
{ {
if ( !isOffsetValid( addr) )
return boost::python::object();
if ( m_pointer ) if ( m_pointer )
return ptrLoader( addr ); return ptrLoader( addr );