Fixed data inspector displaying zero at the end of data

Fixes #25
This commit is contained in:
WerWolv 2020-12-05 10:42:42 +01:00
parent 6456a68805
commit 2ca9a8fc79
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ namespace hex {
this->m_validBytes = std::min(this->m_dataProvider->getSize() - region.address, sizeof(PreviewData));
std::memset(&this->m_previewData, 0x00, sizeof(PreviewData));
this->m_dataProvider->read(region.address, &this->m_previewData, sizeof(PreviewData));
this->m_dataProvider->read(region.address, &this->m_previewData, this->m_validBytes);
this->m_shouldInvalidate = true;
});