From 5d979da3e2e85651f1b86bf9480b4ab118769bde Mon Sep 17 00:00:00 2001 From: WerWolv Date: Thu, 13 Oct 2022 21:23:26 +0200 Subject: [PATCH] fix: Modified bytes on pages after the first one always displaying 0x00 Fixed #782 --- plugins/builtin/source/content/providers/file_provider.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/builtin/source/content/providers/file_provider.cpp b/plugins/builtin/source/content/providers/file_provider.cpp index 2bc9bc96a..bf0642be8 100644 --- a/plugins/builtin/source/content/providers/file_provider.cpp +++ b/plugins/builtin/source/content/providers/file_provider.cpp @@ -41,7 +41,7 @@ namespace hex::plugin::builtin::prv { for (u64 i = 0; i < size; i++) if (getPatches().contains(offset + i)) - reinterpret_cast(buffer)[i] = getPatches()[offset + PageSize * this->m_currPage + i]; + reinterpret_cast(buffer)[i] = getPatches()[offset + i]; if (overlays) this->applyOverlays(offset, buffer, size);