diff --git a/lib/external/imgui/include/imgui_memory_editor.h b/lib/external/imgui/include/imgui_memory_editor.h index c5eca3e5c..befe640ea 100644 --- a/lib/external/imgui/include/imgui_memory_editor.h +++ b/lib/external/imgui/include/imgui_memory_editor.h @@ -694,7 +694,7 @@ struct MemoryEditor if (data_next && DataEditingAddr < mem_size) { - DataEditingAddr = DataPreviewAddr = DataEditingAddr + 1; + DataEditingAddr = DataPreviewAddr = DataPreviewAddrEnd = DataEditingAddr + 1; DataEditingTakeFocus = true; } else if (data_editing_addr_next != (size_t)-1) diff --git a/plugins/builtin/source/content/providers/file_provider.cpp b/plugins/builtin/source/content/providers/file_provider.cpp index 13e1b86e0..a4e8a0942 100644 --- a/plugins/builtin/source/content/providers/file_provider.cpp +++ b/plugins/builtin/source/content/providers/file_provider.cpp @@ -62,7 +62,7 @@ namespace hex::plugin::builtin::prv { if ((offset - this->getBaseAddress()) > (this->getActualSize() - size) || buffer == nullptr || size == 0) return; - addPatch(offset, buffer, size); + addPatch(offset, buffer, size, true); } void FileProvider::readRaw(u64 offset, void *buffer, size_t size) { @@ -238,7 +238,7 @@ namespace hex::plugin::builtin::prv { #else const auto &path = this->m_path.native(); - int mmapprot = PROT_READ | PROT_WRITE; + int mmapprot = PROT_READ | PROT_WRITE; this->m_file = ::open(path.c_str(), O_RDWR); if (this->m_file == -1) {