summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-09-18 05:22:02 +0200
committerLioncash <mathew1800@gmail.com>2018-09-18 05:27:53 +0200
commit71b48cb00fed9ff70b99415cdf41c2f41c69ad1e (patch)
tree6f3d3f10dd0b1c3f6f92ec85de4acc3f9b81e35f /src
parentkernel/svc: Handle error cases for svcArbitrateLock() and svcArbitrateUnlock() (diff)
downloadyuzu-71b48cb00fed9ff70b99415cdf41c2f41c69ad1e.tar
yuzu-71b48cb00fed9ff70b99415cdf41c2f41c69ad1e.tar.gz
yuzu-71b48cb00fed9ff70b99415cdf41c2f41c69ad1e.tar.bz2
yuzu-71b48cb00fed9ff70b99415cdf41c2f41c69ad1e.tar.lz
yuzu-71b48cb00fed9ff70b99415cdf41c2f41c69ad1e.tar.xz
yuzu-71b48cb00fed9ff70b99415cdf41c2f41c69ad1e.tar.zst
yuzu-71b48cb00fed9ff70b99415cdf41c2f41c69ad1e.zip
Diffstat (limited to 'src')
-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 36bf0b677..51f4544be 100644
--- a/src/core/hle/kernel/mutex.cpp
+++ b/src/core/hle/kernel/mutex.cpp
@@ -62,7 +62,7 @@ ResultCode Mutex::TryAcquire(HandleTable& handle_table, VAddr address, Handle ho
Handle requesting_thread_handle) {
// The mutex address must be 4-byte aligned
if ((address % sizeof(u32)) != 0) {
- return ResultCode(ErrorModule::Kernel, ErrCodes::InvalidAddress);
+ return ERR_INVALID_ADDRESS;
}
SharedPtr<Thread> holding_thread = handle_table.Get<Thread>(holding_thread_handle);
@@ -100,7 +100,7 @@ ResultCode Mutex::TryAcquire(HandleTable& handle_table, VAddr address, Handle ho
ResultCode Mutex::Release(VAddr address) {
// The mutex address must be 4-byte aligned
if ((address % sizeof(u32)) != 0) {
- return ResultCode(ErrorModule::Kernel, ErrCodes::InvalidAddress);
+ return ERR_INVALID_ADDRESS;
}
auto [thread, num_waiters] = GetHighestPriorityMutexWaitingThread(GetCurrentThread(), address);