aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/shared_memory.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-08-25 05:40:42 -0400
committerLioncash <mathew1800@gmail.com>2018-08-25 09:40:12 -0400
commitb8be5524bc3fd9c1d31a4a56cb321840c42ef0bb (patch)
tree16eb07e5639804668e520707beebeebc90105d04 /src/core/hle/kernel/shared_memory.cpp
parent2fd45093f21ca32272d51771025418eda3914d7f (diff)
kernel/error: Add error code for invalid memory permissions
Diffstat (limited to 'src/core/hle/kernel/shared_memory.cpp')
-rw-r--r--src/core/hle/kernel/shared_memory.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/kernel/shared_memory.cpp b/src/core/hle/kernel/shared_memory.cpp
index 21ddc2f7d..fc168d2b5 100644
--- a/src/core/hle/kernel/shared_memory.cpp
+++ b/src/core/hle/kernel/shared_memory.cpp
@@ -101,7 +101,7 @@ ResultCode SharedMemory::Map(Process* target_process, VAddr address, MemoryPermi
static_cast<u32>(this->permissions) & ~static_cast<u32>(other_permissions)) {
LOG_ERROR(Kernel, "cannot map id={}, address=0x{:X} name={}, permissions don't match",
GetObjectId(), address, name);
- return ERR_WRONG_PERMISSION;
+ return ERR_INVALID_MEMORY_PERMISSIONS;
}
VAddr target_address = address;