1
0
mirror of synced 2024-11-12 02:00:52 +01:00

fix: Base address issues with the data inspector and copy as array option

Fixes #1595
This commit is contained in:
WerWolv 2024-03-13 16:38:44 +01:00
parent 45b05a4846
commit 7b25be51a5
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ namespace hex::plugin::builtin {
m_validBytes = 0; m_validBytes = 0;
m_selectedProvider = nullptr; m_selectedProvider = nullptr;
} else { } else {
m_validBytes = u64(region.getProvider()->getActualSize() - region.address); m_validBytes = u64((region.getProvider()->getBaseAddress() + region.getProvider()->getActualSize()) - region.address);
m_startAddress = region.address; m_startAddress = region.address;
m_selectedProvider = region.getProvider(); m_selectedProvider = region.getProvider();
} }

View File

@ -1050,7 +1050,7 @@ namespace hex::plugin::builtin {
ImGui::SetClipboardText( ImGui::SetClipboardText(
callback( callback(
provider, provider,
selection->getStartAddress() + provider->getBaseAddress() + provider->getCurrentPageAddress(), selection->getStartAddress(),
selection->size selection->size
).c_str() ).c_str()
); );