mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 13:05:25 -05:00
patterns: Potentially fix issues with nested pointers with custom base addresses
Closes #367
This commit is contained in:
@@ -1138,6 +1138,8 @@ namespace hex::pl {
|
||||
auto pattern = new PatternDataPointer(offset, sizePattern->getSize(), evaluator);
|
||||
pattern->setVariableName(this->m_name);
|
||||
|
||||
applyVariableAttributes(evaluator, this, pattern);
|
||||
|
||||
offset = evaluator->dataOffset();
|
||||
|
||||
{
|
||||
@@ -1155,8 +1157,6 @@ namespace hex::pl {
|
||||
|
||||
evaluator->dataOffset() = offset;
|
||||
|
||||
applyVariableAttributes(evaluator, this, pattern);
|
||||
|
||||
return { pattern };
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user