Fix issue with hleLogDebugOrError where the return value argument got repeated.

Not good when the argument is a function call..
This commit is contained in:
Henrik Rydgård committed 2025-03-05 11:24:44 +01:00
1 parent 5712cf93e9
commit 1f5cfe82ed
4 files changed
+28 -20

No files matched your search

+3 -4
View File
@@ -2173,10 +2173,9 @@ u32 sceKernelLoadModule(const char *name, u32 flags, u32 optionAddr) {
return hleDelayResult(hleNoLog(module->GetUID()), "module loaded", 500);
}
static u32 sceKernelLoadModuleNpDrm(const char *name, u32 flags, u32 optionAddr)
{
// TODO: Handle recursive syscall properly
return hleLogDebugOrError(Log::Loader, sceKernelLoadModule(name, flags, optionAddr));
static u32 sceKernelLoadModuleNpDrm(const char *name, u32 flags, u32 optionAddr) {
// Just forward it, same parameters so the logging will make sense.
return sceKernelLoadModule(name, flags, optionAddr);
}
int __KernelStartModule(SceUID moduleId, u32 argsize, u32 argAddr, u32 returnValueAddr, SceKernelSMOption *smoption, bool *needsWait) {