diff options
author | Lioncash <mathew1800@gmail.com> | 2019-03-05 16:55:53 -0500 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-03-06 11:44:32 -0500 |
commit | 9ac176d5a32c29dbf84208e7142fb87b012496e5 (patch) | |
tree | cc6cc0f460075d1547aae7c11dd20f010ced074a /src | |
parent | 234f00bdd481c9ec3db68f81872512d7a02f4a3b (diff) |
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')
-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: if (!audio_core.QueueBuffer(stream, tag, std::move(samples))) { IPC::ResponseBuilder rb{ctx, 2}; rb.Push(ERR_BUFFER_COUNT_EXCEEDED); + return; } IPC::ResponseBuilder rb{ctx, 2}; |