From 47fd5bdc007a3fec5c08358c7cc988c5addf1aab Mon Sep 17 00:00:00 2001 From: WerWolv Date: Tue, 22 Mar 2022 08:19:14 +0100 Subject: [PATCH] patterns: Fixed pointer type displaying causing crashes Fixes #480 --- .../include/hex/pattern_language/patterns/pattern_pointer.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libimhex/include/hex/pattern_language/patterns/pattern_pointer.hpp b/lib/libimhex/include/hex/pattern_language/patterns/pattern_pointer.hpp index 3ad94a652..9dd60632f 100644 --- a/lib/libimhex/include/hex/pattern_language/patterns/pattern_pointer.hpp +++ b/lib/libimhex/include/hex/pattern_language/patterns/pattern_pointer.hpp @@ -31,7 +31,7 @@ namespace hex::pl { } [[nodiscard]] std::string getFormattedName() const override { - std::string result = this->getTypeName().empty() ? this->getFormattedName() : this->getTypeName() + "* : "; + std::string result = (this->getTypeName().empty() ? this->m_pointedAt->getTypeName() : this->getTypeName()) + "* : "; switch (this->getSize()) { case 1: result += "u8";