summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2017-01-12 16:14:30 +0100
committerGitHub <noreply@github.com>2017-01-12 16:14:30 +0100
commit7ddfd3054dc67fa727ec7c7267f27a438ac37dc3 (patch)
tree30bd821242a3f3dad780595673c3d5adf92ebe86 /src/core/hle/service
parentMerge pull request #2308 from mailwl/ac-i (diff)
parentThreads: Check the process' resource limit for the max allowed priority when creating a thread and remove the priority clamping code. (diff)
downloadyuzu-7ddfd3054dc67fa727ec7c7267f27a438ac37dc3.tar
yuzu-7ddfd3054dc67fa727ec7c7267f27a438ac37dc3.tar.gz
yuzu-7ddfd3054dc67fa727ec7c7267f27a438ac37dc3.tar.bz2
yuzu-7ddfd3054dc67fa727ec7c7267f27a438ac37dc3.tar.lz
yuzu-7ddfd3054dc67fa727ec7c7267f27a438ac37dc3.tar.xz
yuzu-7ddfd3054dc67fa727ec7c7267f27a438ac37dc3.tar.zst
yuzu-7ddfd3054dc67fa727ec7c7267f27a438ac37dc3.zip
Diffstat (limited to 'src/core/hle/service')
-rw-r--r--src/core/hle/service/y2r_u.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/hle/service/y2r_u.cpp b/src/core/hle/service/y2r_u.cpp
index a20194107..31bb466fc 100644
--- a/src/core/hle/service/y2r_u.cpp
+++ b/src/core/hle/service/y2r_u.cpp
@@ -531,7 +531,9 @@ static void GetStandardCoefficient(Interface* self) {
LOG_DEBUG(Service_Y2R, "called standard_coefficient=%u ", index);
} else {
cmd_buff[0] = IPC::MakeHeader(0x21, 1, 0);
- cmd_buff[1] = -1; // TODO(bunnei): Identify the correct error code for this
+ cmd_buff[1] = ResultCode(ErrorDescription::InvalidEnumValue, ErrorModule::CAM,
+ ErrorSummary::InvalidArgument, ErrorLevel::Usage)
+ .raw;
LOG_ERROR(Service_Y2R, "called standard_coefficient=%u The argument is invalid!", index);
}