Clean up Nso fopen semantics

This commit is contained in:
Michael Scire 2018-04-24 03:14:40 -06:00
commit 5e5dd530c7
3 changed files with 26 additions and 21 deletions

View file

@ -90,6 +90,7 @@ Result ProcessCreation::CreateProcess(Handle *out_process_h, u64 index, char *nc
NpdmUtils::NpdmInfo npdm_info = {0};
ProcessInfo process_info = {0};
Registration::Process *target_process;
Handle process_h = 0;
Result rc;
/* Get the process from the registration queue. */
@ -143,7 +144,7 @@ Result ProcessCreation::CreateProcess(Handle *out_process_h, u64 index, char *nc
/* TODO: Figure out where NSOs will be mapped, and how much space they (and arguments) will take up. */
/* Call svcCreateProcess(). */
rc = svcCreateProcess(out_process_h, &process_info, (u32 *)npdm_info.aci0_kac, npdm_info.aci0->kac_size/sizeof(u32));
rc = svcCreateProcess(&process_h, &process_info, (u32 *)npdm_info.aci0_kac, npdm_info.aci0->kac_size/sizeof(u32));
if (R_FAILED(rc)) {
goto CREATE_PROCESS_END;
}