From 4380085bcccb23694010b042a4e7f70bb7080111 Mon Sep 17 00:00:00 2001 From: Stephen Miller Date: Thu, 8 May 2025 21:43:25 -0500 Subject: [PATCH] Fix my bug Oh hey, finally something that's my fault. --- src/core/memory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/memory.cpp b/src/core/memory.cpp index 278f3f5c0..e1586eabf 100644 --- a/src/core/memory.cpp +++ b/src/core/memory.cpp @@ -257,7 +257,7 @@ int MemoryManager::Reserve(void** out_addr, VAddr virtual_addr, size_t size, Mem // Fixed mapping means the virtual address must exactly match the provided one. if (True(flags & MemoryMapFlags::Fixed)) { - auto& vma = FindVMA(mapped_addr)->second; + auto vma = FindVMA(mapped_addr)->second; // If the VMA is mapped, unmap the region first. if (vma.IsMapped()) { UnmapMemoryImpl(mapped_addr, size);