mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-07-04 23:31:19 +01:00
Y2R: Use the proper error code when GetStandardCoefficient receives an invalid value.
This commit is contained in:
parent
84d72fd92f
commit
5ddc2e09b1
1 changed files with 3 additions and 1 deletions
|
@ -531,7 +531,9 @@ static void GetStandardCoefficient(Interface* self) {
|
||||||
LOG_DEBUG(Service_Y2R, "called standard_coefficient=%u ", index);
|
LOG_DEBUG(Service_Y2R, "called standard_coefficient=%u ", index);
|
||||||
} else {
|
} else {
|
||||||
cmd_buff[0] = IPC::MakeHeader(0x21, 1, 0);
|
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);
|
LOG_ERROR(Service_Y2R, "called standard_coefficient=%u The argument is invalid!", index);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue