mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-17 17:36:44 +00:00
loader: Ensure code:/ unmounts if mounted.
This commit is contained in:
parent
047f3b653e
commit
dc1db0dc72
1 changed files with 3 additions and 2 deletions
|
@ -231,6 +231,8 @@ Result ProcessCreation::CreateProcess(Handle *out_process_h, u64 index, char *nc
|
|||
/* ECS is a one-shot operation, but we don't clear on failure. */
|
||||
ContentManagement::ClearExternalContentSource(target_process->tid_sid.title_id);
|
||||
|
||||
|
||||
CREATE_PROCESS_END:
|
||||
if (mounted_code) {
|
||||
if (R_SUCCEEDED(rc) && target_process->tid_sid.storage_id != FsStorageId_None) {
|
||||
rc = ContentManagement::UnmountCode();
|
||||
|
@ -238,8 +240,7 @@ Result ProcessCreation::CreateProcess(Handle *out_process_h, u64 index, char *nc
|
|||
ContentManagement::UnmountCode();
|
||||
}
|
||||
}
|
||||
|
||||
CREATE_PROCESS_END:
|
||||
|
||||
if (R_SUCCEEDED(rc)) {
|
||||
*out_process_h = process_h;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue