[[+] 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:
SND\kernelnet_cp 2010-11-12 16:03:03 +00:00
parent 2929128d54
commit 39a14ab66b

View File

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