[BUGFIX] In Executable::convertAddr: fixed RVA->VA conversion

This commit is contained in:
hasherezade
2015-03-05 19:08:32 +01:00
parent 74d8aeb291
commit 4e643f70ed
+3 -2
View File
@@ -55,8 +55,9 @@ offset_t Executable::convertAddr(offset_t inAddr, Executable::addr_type inType,
if (inType == Executable::RAW && outType == Executable::RVA) {
return this->rawToRva(inAddr);
}
if (inType == Executable::RAW && outType == Executable::VA) {
return this->rawToRva(inAddr) + this->getImageBase();
if (outType == Executable::VA) {
if (inType == Executable::RAW) inAddr = rawToRva(inAddr);
return inAddr + this->getImageBase();
}
if (outType == Executable::RAW) {
bool allowExceptions = false;