[!] 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:
SND\kernelnet_cp 2011-01-25 15:32:01 +00:00
parent a38310cad3
commit 122ec5deea
2 changed files with 21 additions and 0 deletions

View File

@ -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 )
{ {

View File

@ -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 );