diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2025-09-12 17:45:15 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2025-09-12 17:45:15 +0200 |
| commit | fe343190d883f0595b87e8ff879c257e883c279b (patch) | |
| tree | 81c8741bb3e14586fde1101c483392726ee9baee /src | |
| parent | e514f75c8ed660a3a45672a1f3bb3841bb30daac (diff) | |
| download | box64-fe343190d883f0595b87e8ff879c257e883c279b.tar.gz box64-fe343190d883f0595b87e8ff879c257e883c279b.zip | |
[DYNAREC] Fixed volatile metadata parser that would ignore rage[0]
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/pe_tools.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tools/pe_tools.c b/src/tools/pe_tools.c index 6afee6c6..903eb8b3 100644 --- a/src/tools/pe_tools.c +++ b/src/tools/pe_tools.c @@ -292,7 +292,7 @@ void ParseVolatileMetadata(char* filename, void* addr) ULONGLONG entry = volatileAccessTable[i].Rva + (ULONGLONG)addr; int ret; khint_t _ = kh_put(volatileopcode, volatileOpcodes, entry, &ret); - printf_log(LOG_DEBUG, "Volatile access table [%d]: %08lX\n", i, entry); + printf_log(LOG_DEBUG, "Volatile access table [%d]: %08lx\n", i, entry); } } @@ -309,8 +309,8 @@ void ParseVolatileMetadata(char* filename, void* addr) for (DWORD i = 0; i < numEntries; i++) { ULONGLONG rva = volatileRangeMetadata[i].Rva + (ULONGLONG)addr; ULONGLONG size = volatileRangeMetadata[i].Size; - rb_set(volatileRanges, rva, rva + size, i); - printf_log(LOG_DEBUG, "Volatile range metadata [%d]: %08lX-%08lX\n", i, rva, rva + size); + rb_set(volatileRanges, rva, rva + size, 1); + printf_log(LOG_DEBUG, "Volatile range metadata [%d]: %08lx-%08lx\n", i, rva, rva + size); } } free(buffer); |