diff --git a/plugins/builtin/source/content/main_menu_items.cpp b/plugins/builtin/source/content/main_menu_items.cpp index a4c877067..fedfae680 100644 --- a/plugins/builtin/source/content/main_menu_items.cpp +++ b/plugins/builtin/source/content/main_menu_items.cpp @@ -257,7 +257,7 @@ namespace hex::plugin::builtin { if (ImGui::MenuItem("hex.builtin.menu.edit.bookmark"_lang, nullptr, false, selection.has_value() && providerValid)) { auto base = provider->getBaseAddress(); - ImHexApi::Bookmarks::add(base + selection->getStartAddress(), selection->getEndAddress(), {}, {}); + ImHexApi::Bookmarks::add(base + selection->getStartAddress(), selection->size, {}, {}); } });