diff --git a/lib/libimhex/source/providers/provider.cpp b/lib/libimhex/source/providers/provider.cpp index cd92c00e4..07b9dbc46 100644 --- a/lib/libimhex/source/providers/provider.cpp +++ b/lib/libimhex/source/providers/provider.cpp @@ -292,7 +292,7 @@ namespace hex::prv { } if (!nextRegionAddress.has_value()) - return { Region { address, this->getActualSize() - address }, true }; + return { Region::Invalid(), false }; else return { Region { address, *nextRegionAddress - address }, insideValidRegion }; }