liblv2 HLE: Fix spu_elf_info loader for SCE SPU images (#8045)

This commit is contained in:
Eladash 2020-04-15 23:19:46 +03:00 committed by GitHub
parent cf229a8e9f
commit 8cb1f4fe26
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -146,7 +146,7 @@ struct spu_elf_info
return CELL_ENOEXEC;
}
std::memcpy(&self, src.get_ptr(), sizeof(self));
std::memcpy(&self, static_cast<const uchar*>(src.get_ptr()) + sizeof(sce0), sizeof(self));
ehdr_off = static_cast<u32>(+self.se_elfoff);
phdr_off = static_cast<u32>(+self.se_phdroff);