mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-02-21 13:18:45 -06:00
fix: Chunk size setting in information view being reset the first time
This commit is contained in:
2
lib/external/libwolv
vendored
2
lib/external/libwolv
vendored
Submodule lib/external/libwolv updated: 63d2bd3258...a31e6efc92
@@ -67,14 +67,14 @@ namespace hex::plugin::builtin {
|
||||
this->m_analyzerTask = TaskManager::createTask("hex.builtin.view.information.analyzing", 0, [this](auto &task) {
|
||||
auto provider = ImHexApi::Provider::get();
|
||||
|
||||
if ((this->m_inputChunkSize <= 0)
|
||||
|| (this->m_analyzedRegion.getStartAddress() >= this->m_analyzedRegion.getEndAddress())
|
||||
|| (this->m_analyzedRegion.getEndAddress() > provider->getActualSize())) {
|
||||
// Invalid parameters, set default one
|
||||
this->m_inputChunkSize = 256;
|
||||
if ((this->m_analyzedRegion.getStartAddress() >= this->m_analyzedRegion.getEndAddress()) || (this->m_analyzedRegion.getEndAddress() > provider->getActualSize())) {
|
||||
this->m_analyzedRegion = { provider->getBaseAddress(), provider->getActualSize() };
|
||||
}
|
||||
|
||||
if (this->m_inputChunkSize <= 0) {
|
||||
this->m_inputChunkSize = 256;
|
||||
}
|
||||
|
||||
task.setMaxValue(this->m_analyzedRegion.getSize());
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user