From e3015307c88982ad513d6c33491558da702fd71b Mon Sep 17 00:00:00 2001 From: SciresM Date: Thu, 14 Jun 2018 18:59:49 -0600 Subject: [PATCH] Fix ipcParseHeaderForDomain error codes. Output errcode for parse now matches official sw for the error cases we check. --- nx/include/switch/kernel/ipc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nx/include/switch/kernel/ipc.h b/nx/include/switch/kernel/ipc.h index 1bc86367..bbe195c9 100644 --- a/nx/include/switch/kernel/ipc.h +++ b/nx/include/switch/kernel/ipc.h @@ -636,12 +636,12 @@ static inline Result ipcParseForDomain(IpcParsedCommand* r) { case DomainMessageType_Close: break; default: - return 0xF601; + return 0x1A60A; } r->ThisObjectId = hdr->ThisObjectId; r->NumObjectIds = hdr->NumObjectIds > 8 ? 8 : hdr->NumObjectIds; if ((uintptr_t)object_ids + sizeof(u32) * r->NumObjectIds - (uintptr_t)armGetTls() >= 0x100) { - return 0xF601; + return 0x1D60A; } for(size_t i = 0; i < r->NumObjectIds; i++) r->ObjectIds[i] = object_ids[i];