sys_prx: Fix PRX module filename reading (#13339)

This commit is contained in:
Elad Ashkenazi 2023-02-04 22:24:24 +02:00 committed by GitHub
parent 737fbf661a
commit 780a6a7b40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1045,7 +1045,7 @@ error_code _sys_prx_get_module_info(ppu_thread& ppu, u32 id, u64 flags, vm::ptr<
if (pOpt->info->filename) if (pOpt->info->filename)
{ {
std::span dst(pOpt->info->filename.get_ptr(), pOpt->info->filename_size); std::span dst(pOpt->info->filename.get_ptr(), pOpt->info->filename_size);
strcpy_trunc(dst, prx->name); strcpy_trunc(dst, vfs::retrieve(prx->path));
} }
if (pOpt->info->segments) if (pOpt->info->segments)