From a5f750297efee72ec751ed838f088f57f779a845 Mon Sep 17 00:00:00 2001 From: Stephen Miller Date: Mon, 26 May 2025 22:19:19 -0500 Subject: [PATCH] Update memory.cpp --- 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 f5316c335..fa7827ffa 100644 --- a/src/core/memory.cpp +++ b/src/core/memory.cpp @@ -396,7 +396,7 @@ s32 MemoryManager::MapFile(void** out_addr, VAddr virtual_addr, u64 size, Memory const auto handle = file->f.GetFileMapping(); - impl.MapFile(mapped_addr, size_aligned, phys_addr, std::bit_cast(prot), fd); + impl.MapFile(mapped_addr, size_aligned, phys_addr, std::bit_cast(prot), handle); if (prot >= MemoryProt::GpuRead) { // PS4s only map to GPU memory when the protection includes GPU access.