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.