diff --git a/lib/libimhex/source/providers/provider.cpp b/lib/libimhex/source/providers/provider.cpp index 1f46366f8..f17591c42 100644 --- a/lib/libimhex/source/providers/provider.cpp +++ b/lib/libimhex/source/providers/provider.cpp @@ -185,6 +185,8 @@ namespace hex::prv { void Provider::setPageSize(size_t pageSize) { if (pageSize > MaxPageSize) pageSize = MaxPageSize; + if (pageSize == 0) + return; this->m_pageSize = pageSize; }