PPU Precompilation Fixup

This commit is contained in:
Eladash 2023-08-06 09:43:13 +03:00 committed by Elad Ashkenazi
parent 343ba8733b
commit ee869a49f4
3 changed files with 11 additions and 3 deletions

View file

@ -1658,7 +1658,7 @@ std::shared_ptr<lv2_prx> ppu_load_prx(const ppu_prx_object& elf, bool virtual_lo
void ppu_unload_prx(const lv2_prx& prx)
{
if (prx.segs[0].ptr != vm::base(prx.segs[0].addr))
if (prx.segs.empty() || prx.segs[0].ptr != vm::base(prx.segs[0].addr))
{
return;
}