mirror of https://github.com/x64dbg/GleeBug
Fix a bug in the rva to offset conversion
This commit is contained in:
parent
ad67ff50fc
commit
4c7aa4a31f
|
|
@ -515,7 +515,10 @@ public:
|
||||||
__debugbreak(); //return 0;
|
__debugbreak(); //return 0;
|
||||||
if (!found->second.pe->IsValidPe())
|
if (!found->second.pe->IsValidPe())
|
||||||
__debugbreak(); //return 0;
|
__debugbreak(); //return 0;
|
||||||
return found->second.pe->ConvertRvaToOffset(uint32(AddressToConvert));
|
auto offset = found->second.pe->ConvertRvaToOffset(uint32(AddressToConvert));
|
||||||
|
if (offset == INVALID_VALUE)
|
||||||
|
return 0;
|
||||||
|
return ReturnType ? FileMapVA + offset : offset;
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue