소스 검색

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).
Lioncash 7 년 전
부모
커밋
9ac176d5a3
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/core/hle/service/audio/audout_u.cpp

+ 1 - 0
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};