mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-05 02:52:13 +02:00
Fix ipcParseHeaderForDomain error codes.
Output errcode for parse now matches official sw for the error cases we check.
This commit is contained in:
parent
89969c1d54
commit
e3015307c8
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user