diff options
| author | 2019-03-05 16:55:53 -0500 | |
|---|---|---|
| committer | 2019-03-06 11:44:32 -0500 | |
| commit | 9ac176d5a32c29dbf84208e7142fb87b012496e5 (patch) | |
| tree | cc6cc0f460075d1547aae7c11dd20f010ced074a /src/core | |
| parent | Merge pull request #2194 from lioncash/mem (diff) | |
| download | yuzu-9ac176d5a32c29dbf84208e7142fb87b012496e5.tar.gz yuzu-9ac176d5a32c29dbf84208e7142fb87b012496e5.tar.xz yuzu-9ac176d5a32c29dbf84208e7142fb87b012496e5.zip | |
hle/service/audio/audout_u: Correct lack of return in failure case of AppendAudioOutBufferImpl()
Previously we were overwriting the error case with a success code
further down (which is definitely not what we should be doing here).
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/hle/service/audio/audout_u.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/hle/service/audio/audout_u.cpp b/src/core/hle/service/audio/audout_u.cpp index 1c04d21cf..bbe813490 100644 --- a/src/core/hle/service/audio/audout_u.cpp +++ b/src/core/hle/service/audio/audout_u.cpp | |||
| @@ -138,6 +138,7 @@ private: | |||
| 138 | if (!audio_core.QueueBuffer(stream, tag, std::move(samples))) { | 138 | if (!audio_core.QueueBuffer(stream, tag, std::move(samples))) { |
| 139 | IPC::ResponseBuilder rb{ctx, 2}; | 139 | IPC::ResponseBuilder rb{ctx, 2}; |
| 140 | rb.Push(ERR_BUFFER_COUNT_EXCEEDED); | 140 | rb.Push(ERR_BUFFER_COUNT_EXCEEDED); |
| 141 | return; | ||
| 141 | } | 142 | } |
| 142 | 143 | ||
| 143 | IPC::ResponseBuilder rb{ctx, 2}; | 144 | IPC::ResponseBuilder rb{ctx, 2}; |