mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-22 05:13:22 +08:00
[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:
parent
81fe97052f
commit
0b80b37258
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user