Don't fail silently for vi, sm, set and ns services
This commit is contained in:
parent
72b73d22ab
commit
b4dbf1b9c7
4 changed files with 27 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue