Fix ipcParseHeaderForDomain error codes.

Output errcode for parse now matches official sw for the error cases we check.
This commit is contained in:
SciresM 2018-06-14 18:59:49 -06:00 committed by GitHub
parent 89969c1d54
commit e3015307c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -636,12 +636,12 @@ static inline Result ipcParseForDomain(IpcParsedCommand* r) {
case DomainMessageType_Close: case DomainMessageType_Close:
break; break;
default: default:
return 0xF601; return 0x1A60A;
} }
r->ThisObjectId = hdr->ThisObjectId; r->ThisObjectId = hdr->ThisObjectId;
r->NumObjectIds = hdr->NumObjectIds > 8 ? 8 : hdr->NumObjectIds; r->NumObjectIds = hdr->NumObjectIds > 8 ? 8 : hdr->NumObjectIds;
if ((uintptr_t)object_ids + sizeof(u32) * r->NumObjectIds - (uintptr_t)armGetTls() >= 0x100) { 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++) for(size_t i = 0; i < r->NumObjectIds; i++)
r->ObjectIds[i] = object_ids[i]; r->ObjectIds[i] = object_ids[i];