summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/mutex.cpp
diff options
context:
space:
mode:
authorMichael Scire <SciresM@gmail.com>2018-06-21 08:49:43 +0200
committerMichael Scire <SciresM@gmail.com>2018-06-21 08:49:43 +0200
commit7e191dccc184ae85ce5ade2bca913ab331002481 (patch)
tree184b0444e9d0cd3bfaea3ebf8c2742802753f58b /src/core/hle/kernel/mutex.cpp
parentMerge pull request #576 from Subv/warnings1 (diff)
downloadyuzu-7e191dccc184ae85ce5ade2bca913ab331002481.tar
yuzu-7e191dccc184ae85ce5ade2bca913ab331002481.tar.gz
yuzu-7e191dccc184ae85ce5ade2bca913ab331002481.tar.bz2
yuzu-7e191dccc184ae85ce5ade2bca913ab331002481.tar.lz
yuzu-7e191dccc184ae85ce5ade2bca913ab331002481.tar.xz
yuzu-7e191dccc184ae85ce5ade2bca913ab331002481.tar.zst
yuzu-7e191dccc184ae85ce5ade2bca913ab331002481.zip
Diffstat (limited to 'src/core/hle/kernel/mutex.cpp')
-rw-r--r--src/core/hle/kernel/mutex.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/mutex.cpp b/src/core/hle/kernel/mutex.cpp
index bc144f3de..65560226d 100644
--- a/src/core/hle/kernel/mutex.cpp
+++ b/src/core/hle/kernel/mutex.cpp
@@ -59,7 +59,7 @@ ResultCode Mutex::TryAcquire(VAddr address, Handle holding_thread_handle,
Handle requesting_thread_handle) {
// The mutex address must be 4-byte aligned
if ((address % sizeof(u32)) != 0) {
- return ResultCode(ErrorModule::Kernel, ErrCodes::MisalignedAddress);
+ return ResultCode(ErrorModule::Kernel, ErrCodes::InvalidAddress);
}
SharedPtr<Thread> holding_thread = g_handle_table.Get<Thread>(holding_thread_handle);
@@ -97,7 +97,7 @@ ResultCode Mutex::TryAcquire(VAddr address, Handle holding_thread_handle,
ResultCode Mutex::Release(VAddr address) {
// The mutex address must be 4-byte aligned
if ((address % sizeof(u32)) != 0) {
- return ResultCode(ErrorModule::Kernel, ErrCodes::MisalignedAddress);
+ return ResultCode(ErrorModule::Kernel, ErrCodes::InvalidAddress);
}
auto [thread, num_waiters] = GetHighestPriorityMutexWaitingThread(GetCurrentThread(), address);