[0.2.x] fixed: module("mymod").queryVersion(""), AV-exception

git-svn-id: https://pykd.svn.codeplex.com/svn@86003 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
SND\EreTIk_cp 2013-10-25 11:18:42 +00:00 committed by Mikhail I. Izmestev
parent 81fe97052f
commit 0b80b37258

View File

@ -379,7 +379,7 @@ std::string getModuleVersionInfo( ULONG64 baseOffset, const std::string &value )
<< std::setw(4) << std::setfill('0') << codePages[0].wCodePage
<< "\\" << value;
ULONG valueLength;
ULONG valueLength = 0;
g_dbgEng->symbols->GetModuleVersionInformation(
DEBUG_ANY_ID,
@ -389,6 +389,9 @@ std::string getModuleVersionInfo( ULONG64 baseOffset, const std::string &value )
0,
&valueLength );
if (!valueLength)
return "";
std::vector<char> valueStr(valueLength);
hres = g_dbgEng->symbols->GetModuleVersionInformation(