From 05a64ce1a324122188f6d2156bbebd50994b5d99 Mon Sep 17 00:00:00 2001 From: spacemeowx2 Date: Thu, 20 Dec 2018 23:40:17 +0800 Subject: [PATCH] Allow null InSmartBuffer --- include/stratosphere/ipc/ipc_serialization.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/stratosphere/ipc/ipc_serialization.hpp b/include/stratosphere/ipc/ipc_serialization.hpp index ffcd67fc..469470c9 100644 --- a/include/stratosphere/ipc/ipc_serialization.hpp +++ b/include/stratosphere/ipc/ipc_serialization.hpp @@ -334,6 +334,8 @@ struct Validator { } else if (ctx->request.StaticSizes[x_index] > 0) { return ctx->request.Buffers[a_index] == nullptr && ctx->request.BufferSizes[a_index++] == 0 && ctx->request.Statics[x_index++] != nullptr; + } else { + return ctx->request.Buffers[a_index++] == nullptr && ctx->request.Statics[x_index++] == nullptr; } return false; } else if constexpr (argT == ArgType::OutSmartBuffer) {