mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-18 17:34:52 +00:00
linker: More null check
This commit is contained in:
parent
4846704832
commit
3a80df007e
2 changed files with 13 additions and 5 deletions
|
@ -68,8 +68,10 @@ void Linker::Execute() {
|
|||
}
|
||||
|
||||
// Configure used flexible memory size.
|
||||
if (u64* flexible_size = GetProcParam()->mem_param->flexible_memory_size) {
|
||||
memory->SetTotalFlexibleSize(*flexible_size);
|
||||
if (auto* mem_param = GetProcParam()->mem_param) {
|
||||
if (u64* flexible_size = mem_param->flexible_memory_size) {
|
||||
memory->SetTotalFlexibleSize(*flexible_size);
|
||||
}
|
||||
}
|
||||
|
||||
// Init primary thread.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue