From 1d51b25ed154ec6e2bdbbcdfc11068defb1ecad1 Mon Sep 17 00:00:00 2001 From: bunnei Date: Sun, 4 Feb 2018 23:42:43 -0500 Subject: [PATCH] set: GetAvailableLanguageCodes should not return lang_codes size. --- src/core/hle/service/set/set.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/core/hle/service/set/set.cpp b/src/core/hle/service/set/set.cpp index d139304bba..1062ba8b38 100644 --- a/src/core/hle/service/set/set.cpp +++ b/src/core/hle/service/set/set.cpp @@ -13,16 +13,17 @@ namespace Service { namespace Set { void SET::GetAvailableLanguageCodes(Kernel::HLERequestContext& ctx) { + IPC::RequestParser rp{ctx}; + u32 id = rp.Pop(); constexpr std::array lang_codes{}; const auto& output_buffer = ctx.BufferDescriptorC()[0]; Memory::WriteBlock(output_buffer.Address(), lang_codes.data(), lang_codes.size()); - IPC::ResponseBuilder rb{ctx, 4}; + IPC::ResponseBuilder rb{ctx, 2}; rb.Push(RESULT_SUCCESS); - rb.Push(static_cast(lang_codes.size())); LOG_WARNING(Service_SET, "(STUBBED) called"); }