summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/cmif_serialization.h
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2024-02-21 02:16:41 +0100
committerLiam <byteslice@airmail.cc>2024-02-21 04:15:38 +0100
commit0471e54e5a74e3171da77ca95f0420142d675947 (patch)
treea436bbcb763a23e58ed91844e5ca3906e6ef7523 /src/core/hle/service/cmif_serialization.h
parentaudio: rewrite IAudioRendererManager (diff)
downloadyuzu-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 'src/core/hle/service/cmif_serialization.h')
-rw-r--r--src/core/hle/service/cmif_serialization.h2
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) {