mirror of https://github.com/x64dbg/GleeBug
implement relocation in GetPE32DataW
This commit is contained in:
parent
8b4d39653e
commit
2e835e23ff
|
|
@ -594,6 +594,10 @@ public:
|
||||||
return WhichSection < sections.size() ? ULONG_PTR(§ions.at(WhichSection).GetHeader().Name[0]) : 0;
|
return WhichSection < sections.size() ? ULONG_PTR(§ions.at(WhichSection).GetHeader().Name[0]) : 0;
|
||||||
case UE_IMAGEBASE:
|
case UE_IMAGEBASE:
|
||||||
return headers->OptionalHeader.ImageBase;
|
return headers->OptionalHeader.ImageBase;
|
||||||
|
case UE_RELOCATIONTABLEADDRESS:
|
||||||
|
return headers->OptionalHeader.DataDirectory[IMAGE_DIRECTORY_ENTRY_BASERELOC].VirtualAddress;
|
||||||
|
case UE_RELOCATIONTABLESIZE:
|
||||||
|
return headers->OptionalHeader.DataDirectory[IMAGE_DIRECTORY_ENTRY_BASERELOC].Size;
|
||||||
default:
|
default:
|
||||||
__debugbreak();
|
__debugbreak();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue