mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-21 04:13:22 +08:00
[!] fixed : issue #8239 ( ptrSignByte returns str value )
git-svn-id: https://pykd.svn.codeplex.com/svn@60688 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
parent
a38310cad3
commit
122ec5deea
@ -209,6 +209,22 @@ loadSignMWord( ULONG64 address )
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
template<>
|
||||||
|
boost::python::object
|
||||||
|
loadByPtr<char>( ULONG64 address )
|
||||||
|
{
|
||||||
|
char value;
|
||||||
|
|
||||||
|
if ( loadMemory( address, &value, sizeof(char) ) )
|
||||||
|
{
|
||||||
|
return boost::python::object( (int)value );
|
||||||
|
}
|
||||||
|
|
||||||
|
return boost::python::object();
|
||||||
|
}
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
boost::python::object
|
boost::python::object
|
||||||
loadUnicodeStr( ULONG64 address )
|
loadUnicodeStr( ULONG64 address )
|
||||||
{
|
{
|
||||||
|
@ -42,6 +42,7 @@ loadArray( ULONG64 address, ULONG number, BOOLEAN phyAddr = FALSE )
|
|||||||
return boost::python::object();
|
return boost::python::object();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
boost::python::object
|
boost::python::object
|
||||||
loadByPtr( ULONG64 address )
|
loadByPtr( ULONG64 address )
|
||||||
@ -56,6 +57,10 @@ loadByPtr( ULONG64 address )
|
|||||||
return boost::python::object();
|
return boost::python::object();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template<>
|
||||||
|
boost::python::object
|
||||||
|
loadByPtr<char>( ULONG64 address );
|
||||||
|
|
||||||
boost::python::object
|
boost::python::object
|
||||||
loadPtrArray( ULONG64 address, ULONG number );
|
loadPtrArray( ULONG64 address, ULONG number );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user