diff --git a/stratosphere/loader/source/ldr_process_creation.cpp b/stratosphere/loader/source/ldr_process_creation.cpp index 102711140..7e0138a60 100644 --- a/stratosphere/loader/source/ldr_process_creation.cpp +++ b/stratosphere/loader/source/ldr_process_creation.cpp @@ -31,8 +31,10 @@ Result ProcessCreation::CreateProcess(Handle *out_process_h, u64 index, char *nc goto CREATE_PROCESS_END; } - /* TODO: Parse and verify ACI0 kernel caps vs ACID kernel caps. */ rc = NpdmUtils::ValidateCapabilities((u32 *)info.acid_kac, info.acid->kac_size/sizeof(u32), (u32 *)info.aci0_kac, info.aci0->kac_size/sizeof(u32)); + if (R_FAILED(rc)) { + goto CREATE_PROCESS_END; + } /* TODO: Read in all NSO headers, see what NSOs are present. */