mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-21 21:03:23 +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
|
<< std::setw(4) << std::setfill('0') << codePages[0].wCodePage
|
||||||
<< "\\" << value;
|
<< "\\" << value;
|
||||||
|
|
||||||
ULONG valueLength;
|
ULONG valueLength = 0;
|
||||||
|
|
||||||
g_dbgEng->symbols->GetModuleVersionInformation(
|
g_dbgEng->symbols->GetModuleVersionInformation(
|
||||||
DEBUG_ANY_ID,
|
DEBUG_ANY_ID,
|
||||||
@ -389,6 +389,9 @@ std::string getModuleVersionInfo( ULONG64 baseOffset, const std::string &value )
|
|||||||
0,
|
0,
|
||||||
&valueLength );
|
&valueLength );
|
||||||
|
|
||||||
|
if (!valueLength)
|
||||||
|
return "";
|
||||||
|
|
||||||
std::vector<char> valueStr(valueLength);
|
std::vector<char> valueStr(valueLength);
|
||||||
|
|
||||||
hres = g_dbgEng->symbols->GetModuleVersionInformation(
|
hres = g_dbgEng->symbols->GetModuleVersionInformation(
|
||||||
|
Loading…
Reference in New Issue
Block a user