diff options
author | Liam <byteslice@airmail.cc> | 2024-02-21 02:16:41 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2024-02-21 04:15:38 +0100 |
commit | 0471e54e5a74e3171da77ca95f0420142d675947 (patch) | |
tree | a436bbcb763a23e58ed91844e5ca3906e6ef7523 /src/core/hle/service/cmif_serialization.h | |
parent | audio: rewrite IAudioRendererManager (diff) | |
download | yuzu-0471e54e5a74e3171da77ca95f0420142d675947.tar yuzu-0471e54e5a74e3171da77ca95f0420142d675947.tar.gz yuzu-0471e54e5a74e3171da77ca95f0420142d675947.tar.bz2 yuzu-0471e54e5a74e3171da77ca95f0420142d675947.tar.lz yuzu-0471e54e5a74e3171da77ca95f0420142d675947.tar.xz yuzu-0471e54e5a74e3171da77ca95f0420142d675947.tar.zst yuzu-0471e54e5a74e3171da77ca95f0420142d675947.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/cmif_serialization.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/service/cmif_serialization.h b/src/core/hle/service/cmif_serialization.h index f24682c34..5a5f610f3 100644 --- a/src/core/hle/service/cmif_serialization.h +++ b/src/core/hle/service/cmif_serialization.h @@ -415,7 +415,7 @@ void WriteOutArgument(bool is_domain, CallArguments& args, u8* raw_data, HLERequ auto& buffer = temp[OutBufferIndex]; const size_t size = buffer.size(); - if (ctx.CanWriteBuffer(OutBufferIndex)) { + if (size > 0 && ctx.CanWriteBuffer(OutBufferIndex)) { if constexpr (ArgType::Attr & BufferAttr_HipcAutoSelect) { ctx.WriteBuffer(buffer.data(), size, OutBufferIndex); } else if constexpr (ArgType::Attr & BufferAttr_HipcMapAlias) { |