From b809e7fcff5432effe5160f3db9eebedd3d3575e Mon Sep 17 00:00:00 2001 From: spacemeowx2 Date: Thu, 22 Nov 2018 21:14:37 +0800 Subject: [PATCH] Fix missing num_elements when calculating size of OutPointerServerSize --- include/stratosphere/ipc/ipc_serialization.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/stratosphere/ipc/ipc_serialization.hpp b/include/stratosphere/ipc/ipc_serialization.hpp index 7ce9bd39..23af7246 100644 --- a/include/stratosphere/ipc/ipc_serialization.hpp +++ b/include/stratosphere/ipc/ipc_serialization.hpp @@ -427,7 +427,7 @@ struct Decoder { } else if constexpr (argT == ArgType::OutPointerClientSize || argT == ArgType::OutPointerServerSize) { u16 sz; if constexpr(argT == ArgType::OutPointerServerSize) { - sz = T::element_size; + sz = T::element_size * T::num_elements; } else { sz = *(const u16 *)((uintptr_t)ctx->request.Raw + 0x10 + c_sz_offset); }