mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-22 05:13:22 +08:00
[[+] added: windbg snippet displaying list of export for module
[!] updated: loadUnicodeStr routine returns unicode string ( instead of ansi string ) git-svn-id: https://pykd.svn.codeplex.com/svn@57434 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
parent
2929128d54
commit
39a14ab66b
@ -230,16 +230,7 @@ loadUnicodeStr( ULONG64 address )
|
|||||||
if ( !loadMemory( buffer, str, length ) )
|
if ( !loadMemory( buffer, str, length ) )
|
||||||
break;
|
break;
|
||||||
|
|
||||||
ansiStr = new char [ length/2 ];
|
boost::python::object( std::wstring(str) );
|
||||||
|
|
||||||
WideCharToMultiByte( CP_ACP, 0, str, length/2, ansiStr, length/2, NULL, NULL );
|
|
||||||
|
|
||||||
std::string strVal ( ansiStr, length/2 );
|
|
||||||
|
|
||||||
delete[] str;
|
|
||||||
delete[] ansiStr;
|
|
||||||
|
|
||||||
return boost::python::object( strVal );
|
|
||||||
|
|
||||||
} while( FALSE );
|
} while( FALSE );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user