diff options
| author | 2017-01-11 11:47:20 -0500 | |
|---|---|---|
| committer | 2017-01-11 16:38:03 -0500 | |
| commit | 5ddc2e09b1a1b4a2b876d93dba1ccc4c56a24207 (patch) | |
| tree | 94b72077cec18addff47fc149dcba56fc214b105 | |
| parent | Merge pull request #2397 from Subv/pulse (diff) | |
| download | yuzu-5ddc2e09b1a1b4a2b876d93dba1ccc4c56a24207.tar.gz yuzu-5ddc2e09b1a1b4a2b876d93dba1ccc4c56a24207.tar.xz yuzu-5ddc2e09b1a1b4a2b876d93dba1ccc4c56a24207.zip | |
Y2R: Use the proper error code when GetStandardCoefficient receives an invalid value.
Diffstat (limited to '')
| -rw-r--r-- | src/core/hle/service/y2r_u.cpp | 4 |
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) { | |||
| 531 | LOG_DEBUG(Service_Y2R, "called standard_coefficient=%u ", index); | 531 | LOG_DEBUG(Service_Y2R, "called standard_coefficient=%u ", index); |
| 532 | } else { | 532 | } else { |
| 533 | cmd_buff[0] = IPC::MakeHeader(0x21, 1, 0); | 533 | cmd_buff[0] = IPC::MakeHeader(0x21, 1, 0); |
| 534 | cmd_buff[1] = -1; // TODO(bunnei): Identify the correct error code for this | 534 | cmd_buff[1] = ResultCode(ErrorDescription::InvalidEnumValue, ErrorModule::CAM, |
| 535 | ErrorSummary::InvalidArgument, ErrorLevel::Usage) | ||
| 536 | .raw; | ||
| 535 | 537 | ||
| 536 | LOG_ERROR(Service_Y2R, "called standard_coefficient=%u The argument is invalid!", index); | 538 | LOG_ERROR(Service_Y2R, "called standard_coefficient=%u The argument is invalid!", index); |
| 537 | } | 539 | } |