Don't fail silently for vi, sm, set and ns services

This commit is contained in:
David Marcec 2020-04-29 11:15:21 +10:00
parent 72b73d22ab
commit b4dbf1b9c7
4 changed files with 27 additions and 3 deletions

View file

@ -67,6 +67,7 @@ void SET::MakeLanguageCode(Kernel::HLERequestContext& ctx) {
const auto index = rp.Pop<u32>();
if (index >= available_language_codes.size()) {
LOG_ERROR(Service_SET, "Invalid language code index! index={}", index);
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ERR_INVALID_LANGUAGE);
return;