Fix NROs crashing and loading infinitely

pull/52/head^2
Belal Ashraf 2024-03-29 13:41:34 +07:00 committed by Crimson-Hawk
parent 39eea71e62
commit 7215ac9543
1 changed files with 1 additions and 0 deletions

@ -106,6 +106,7 @@ std::unique_ptr<Process> CreateApplicationProcess(std::vector<u8>& out_control,
out_control = nacp.GetRawBytes();
} else {
out_control.resize(sizeof(FileSys::RawNACP));
memset(out_control.data(), 0, sizeof(u8) * out_control.size());
}
auto& storage = system.GetContentProviderUnion();