mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 13:05:25 -05:00
sys: Drastically revamp the relative vs absolute address mess
This commit is contained in:
@@ -59,8 +59,8 @@ namespace hex {
|
||||
this->m_shouldInvalidate = true;
|
||||
|
||||
size_t dataSize = provider->getSize();
|
||||
if (this->m_hashRegion[1] >= dataSize)
|
||||
this->m_hashRegion[1] = dataSize - 1;
|
||||
if (this->m_hashRegion[1] >= provider->getBaseAddress() + dataSize)
|
||||
this->m_hashRegion[1] = provider->getBaseAddress() + dataSize - 1;
|
||||
|
||||
|
||||
if (this->m_hashRegion[1] >= this->m_hashRegion[0]) {
|
||||
|
||||
Reference in New Issue
Block a user