mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-20 03:23:23 +08:00
[0.2.x] fixed : issue #12068 ( windbg crash at loadWStr(0) )
git-svn-id: https://pykd.svn.codeplex.com/svn@84891 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
parent
95d1365233
commit
3e271a7c1a
@ -185,6 +185,9 @@ std::wstring loadWStr( ULONG64 offset )
|
||||
0,
|
||||
&strLength );
|
||||
|
||||
if ( FAILED( hres ) )
|
||||
throw MemoryException( offset );
|
||||
|
||||
std::vector<wchar_t> buffer(strLength);
|
||||
|
||||
hres =
|
||||
@ -195,8 +198,7 @@ std::wstring loadWStr( ULONG64 offset )
|
||||
strLength,
|
||||
NULL );
|
||||
|
||||
if ( FAILED( hres ) )
|
||||
throw MemoryException( offset );
|
||||
|
||||
|
||||
return std::wstring( &buffer[0] );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user