mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-05 08:52:36 +00:00
Fix error code
This commit is contained in:
parent
2127b5f893
commit
53be1f138f
@ -291,7 +291,7 @@ int MemoryManager::MapMemory(void** out_addr, VAddr virtual_addr, size_t size, M
|
|||||||
const size_t remaining_size = vma.base + vma.size - mapped_addr;
|
const size_t remaining_size = vma.base + vma.size - mapped_addr;
|
||||||
if (vma.IsMapped()) {
|
if (vma.IsMapped()) {
|
||||||
LOG_ERROR(Kernel_Vmm, "Attempted to map already mapped memory at {:#x}", virtual_addr);
|
LOG_ERROR(Kernel_Vmm, "Attempted to map already mapped memory at {:#x}", virtual_addr);
|
||||||
return ORBIS_KERNEL_ERROR_EBUSY;
|
return ORBIS_KERNEL_ERROR_ENOMEM;
|
||||||
}
|
}
|
||||||
if (remaining_size < size) {
|
if (remaining_size < size) {
|
||||||
LOG_ERROR(Kernel_Vmm, "Could not map memory with size {:#x}", size);
|
LOG_ERROR(Kernel_Vmm, "Could not map memory with size {:#x}", size);
|
||||||
|
Loading…
Reference in New Issue
Block a user