mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
fix: Undo points not being created correctly
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user