mirror of
https://github.com/Perfare/Il2CppDumper.git
synced 2025-01-24 17:57:56 -03:00
Fixed #689
This commit is contained in:
parent
23285b5636
commit
e51751ec81
1 changed files with 4 additions and 2 deletions
|
@ -271,13 +271,15 @@ namespace Il2CppDumper
|
||||||
public override ulong ReadUIntPtr()
|
public override ulong ReadUIntPtr()
|
||||||
{
|
{
|
||||||
var pointer = ReadUInt64();
|
var pointer = ReadUInt64();
|
||||||
if (pointer > 0xFFFFFFFF)
|
if (pointer > vmaddr + 0xFFFFFFFF)
|
||||||
{
|
{
|
||||||
var addr = Position;
|
var addr = Position;
|
||||||
var section = sections.First(x => addr >= x.offset && addr <= x.offset + x.size);
|
var section = sections.First(x => addr >= x.offset && addr <= x.offset + x.size);
|
||||||
if (section.sectname == "__const" || section.sectname == "__data")
|
if (section.sectname == "__const" || section.sectname == "__data")
|
||||||
{
|
{
|
||||||
pointer &= 0xFFFFFFFF;
|
var rva = pointer - vmaddr;
|
||||||
|
rva &= 0xFFFFFFFF;
|
||||||
|
pointer = rva + vmaddr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return pointer;
|
return pointer;
|
||||||
|
|
Loading…
Add table
Reference in a new issue