1
0
mirror of synced 2025-01-31 12:03:46 +01:00

sys: Allow file inspector to read bytes over the page boundary

Fixes #751
This commit is contained in:
WerWolv 2022-09-26 11:53:29 +02:00
parent ceaf80a186
commit 639390115b

View File

@ -17,7 +17,7 @@ namespace hex::plugin::builtin {
if (!ImHexApi::Provider::isValid() || region.address == (size_t)-1) {
this->m_validBytes = 0;
} else {
this->m_validBytes = u64(provider->getSize() - region.address);
this->m_validBytes = u64(provider->getActualSize() - region.address);
this->m_startAddress = region.address;
}