Fix NROs crashing and loading infinitely
codespell / Check for spelling errors (push) Successful in 11s Details
suyu-ci / Check REUSE Specification (push) Successful in 10s Details
suyu verify / Verify Format (push) Successful in 1m31s Details
suyu verify / test build (linux-fresh, clang) (push) Successful in 11m1s Details
suyu verify / test build (linux-fresh, linux) (push) Successful in 14m17s Details
suyu verify / android (push) Successful in 33m48s Details

This commit is contained in:
null 2024-03-29 13:41:34 +01:00 committed by Crimson-Hawk
parent 39eea71e62
commit 7215ac9543
1 changed files with 1 additions and 0 deletions

View File

@ -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();