diff --git a/src/core/hle/service/apt/apt.cpp b/src/core/hle/service/apt/apt.cpp index 5efd2dd206..98c263b647 100644 --- a/src/core/hle/service/apt/apt.cpp +++ b/src/core/hle/service/apt/apt.cpp @@ -620,12 +620,14 @@ void Module::Interface::GetStartupArgument(Kernel::HLERequestContext& ctx) { u32 parameter_size = rp.Pop(); StartupArgumentType startup_argument_type = static_cast(rp.Pop()); - if (parameter_size >= 0x300) { - LOG_ERROR( - Service_APT, - "Parameter size is outside the valid range (capped to 0x300): parameter_size={:#010X}", - parameter_size); - return; + const u32 max_parameter_size{0x1000}; + + if (parameter_size > max_parameter_size) { + LOG_ERROR(Service_APT, + "Parameter size is outside the valid range (capped to {:#010X}): " + "parameter_size={:#010X}", + max_parameter_size, parameter_size); + parameter_size = max_parameter_size; } std::vector parameter(parameter_size, 0);