From fd0a618b163bc1cc37b80388c8f8d2879ab1cbbe Mon Sep 17 00:00:00 2001 From: xperia64 Date: Sun, 7 Jun 2020 16:16:36 -0400 Subject: [PATCH] Fix ReadPipeIfPossible --- src/core/hle/service/dsp/dsp_dsp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/hle/service/dsp/dsp_dsp.cpp b/src/core/hle/service/dsp/dsp_dsp.cpp index dcfb73d6e1..720c4595aa 100644 --- a/src/core/hle/service/dsp/dsp_dsp.cpp +++ b/src/core/hle/service/dsp/dsp_dsp.cpp @@ -161,7 +161,7 @@ void DSP_DSP::ReadPipeIfPossible(Kernel::HLERequestContext& ctx) { IPC::RequestBuilder rb = rp.MakeBuilder(2, 2); rb.Push(RESULT_SUCCESS); - rb.Push(pipe_readable_size); + rb.Push(pipe_buffer.size()); rb.PushStaticBuffer(std::move(pipe_buffer), 0); LOG_DEBUG(Service_DSP, "channel={}, peer={}, size=0x{:04X}, pipe_readable_size=0x{:04X}",