mirror of
https://github.com/stenzek/duckstation.git
synced 2026-07-11 01:24:11 +02:00
Qt: Fix off-by-one in edit RAM callback
This commit is contained in:
@@ -569,7 +569,7 @@ void DebuggerWindow::setMemoryViewRegion(Bus::MemoryRegion region)
|
||||
|
||||
static constexpr auto edit_ram_callback = [](size_t offset, size_t count) {
|
||||
// shouldn't happen
|
||||
if (offset > Bus::g_ram_size)
|
||||
if (offset >= Bus::g_ram_size)
|
||||
return;
|
||||
|
||||
const u32 start_page = static_cast<u32>(offset) >> HOST_PAGE_SHIFT;
|
||||
|
||||
Reference in New Issue
Block a user