[0.2.x] fixed : ptr value sometimes is not extended to 64 bit format

git-svn-id: https://pykd.svn.codeplex.com/svn@81698 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
SND\kernelnet_cp 2012-12-08 07:23:37 +00:00 committed by Mikhail I. Izmestev
parent ca3e1c8d06
commit 26f4a16d43
2 changed files with 4 additions and 4 deletions

View File

@ -53,7 +53,7 @@ void VarDataMemory::read(PVOID buffer, ULONG length, ULONG offset /*= 0*/) const
ULONG64 VarDataMemory::readPtr( ULONG ptrSize ) const
{
return ptrSize == 4 ? ptrDWord( m_addr ) : ptrQWord( m_addr );
return addr64( ptrSize == 4 ? ptrDWord( m_addr ) : ptrQWord( m_addr ) );
}
//////////////////////////////////////////////////////////////////////////////
@ -100,9 +100,9 @@ void VarDataConst::read(PVOID buffer, ULONG length, ULONG offset /*= 0*/) const
ULONG64 VarDataConst::readPtr( ULONG ptrSize ) const
{
return ptrSize == 4 ?
return addr64( ptrSize == 4 ?
boost::apply_visitor( VariantToULong64(), m_value ) :
boost::apply_visitor( VariantToULong(), m_value );
boost::apply_visitor( VariantToULong(), m_value ) );
}
//////////////////////////////////////////////////////////////////////////////////

View File

@ -21,7 +21,7 @@ public:
template<typename T>
std::string operator()(T i ) const {
std::stringstream sstr;
sstr << std::hex << i;
sstr << std::hex << "0x" << i;
return sstr.str();
}
};