From 1d51b25ed154ec6e2bdbbcdfc11068defb1ecad1 Mon Sep 17 00:00:00 2001 From: bunnei Date: Sun, 4 Feb 2018 23:42:43 -0500 Subject: set: GetAvailableLanguageCodes should not return lang_codes size. --- src/core/hle/service/set/set.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/core/hle/service/set/set.cpp b/src/core/hle/service/set/set.cpp index d139304bb..1062ba8b3 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"); } -- cgit v1.2.3