mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-20 19:53:22 +08:00
[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:
parent
ca3e1c8d06
commit
26f4a16d43
@ -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 ) );
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -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();
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user