fix: Base address issues with the data inspector and copy as array option
Fixes #1595
This commit is contained in:
parent
45b05a4846
commit
7b25be51a5
@ -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();
|
||||||
}
|
}
|
||||||
|
@ -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()
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user