[rpcsx-os] linker: Fix moduleParam check (#38)

This commit is contained in:
Macdu 2023-08-02 22:55:18 +02:00 committed by GitHub
parent 1286b4f9ef
commit 8a5eb8e531
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -401,7 +401,7 @@ Ref<orbis::Module> rx::linker::loadModule(std::span<std::byte> image,
if (sceModuleParamIndex >= 0) {
result->moduleParam =
phdrs[sceProcParamIndex].p_vaddr
phdrs[sceModuleParamIndex].p_vaddr
? reinterpret_cast<void *>(imageBase +
phdrs[sceModuleParamIndex].p_vaddr)
: nullptr;