diff --git a/plugins/builtin/source/content/views/view_diff.cpp b/plugins/builtin/source/content/views/view_diff.cpp index 18eceff77..c144e7f1f 100644 --- a/plugins/builtin/source/content/views/view_diff.cpp +++ b/plugins/builtin/source/content/views/view_diff.cpp @@ -111,7 +111,7 @@ namespace hex::plugin::builtin { auto &otherProvider = providers[otherId]; // Handle the case where one provider is larger than the other one - if (address > otherProvider->getActualSize()) { + if ((address - otherProvider->getBaseAddress()) > otherProvider->getActualSize()) { if (otherIndex == 1) return getDiffColor(ImGuiExt::GetCustomColorU32(ImGuiCustomCol_DiffAdded)); else