mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-09-03 16:15:43 +00:00
Clean up Nso fopen semantics
This commit is contained in:
parent
1c47959bca
commit
5e5dd530c7
3 changed files with 26 additions and 21 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue