Fix NROs crashing and loading infinitely

This commit is contained in:
Belal Ashraf 2024-03-29 13:41:34 +01:00 committed by XForYouX
parent 927c299355
commit 87948ff253

View file

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