From 37c41f632461754b76dbd06be4844d4dafc2287c Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Sat, 16 Mar 2019 10:52:58 -0700 Subject: [PATCH] Fix validation typo (closes #7) --- 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 dea01e8a..01b51c92 100644 --- a/include/stratosphere/ipc/ipc_serialization.hpp +++ b/include/stratosphere/ipc/ipc_serialization.hpp @@ -320,7 +320,7 @@ struct Validator { } else { if constexpr (argT == ArgType::OutPointerServerSize) { total_c_size += T::num_elements * sizeof(T); - } else if constexpr (argT == ArgType::OutPointerServerSize) { + } else if constexpr (argT == ArgType::OutPointerClientSize) { total_c_size += *((u16 *)((uintptr_t)(ctx->request.Raw) + 0x10 + cur_c_size_offset)); cur_c_size_offset += sizeof(u16); }