fixed an issue in sceKernelRemoveExceptionHandler (#4086)

* fixed an issue in sceKernelRemoveExceptionHandler

* fixed comment
This commit is contained in:
georgemoralis 2026-03-07 08:55:17 +02:00 committed by GitHub
parent 89e74828e6
commit 50d5ce9a83
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -276,7 +276,10 @@ int PS4_SYSV_ABI sceKernelRemoveExceptionHandler(s32 signum) {
return ORBIS_KERNEL_ERROR_EINVAL;
}
int const native_signum = OrbisToNativeSignal(signum);
ASSERT_MSG(Handlers[native_signum], "Invalid parameters");
if (!Handlers[native_signum]) {
LOG_WARNING(Lib_Kernel, "removing non-installed handler for signum {}", signum);
return ORBIS_KERNEL_ERROR_EINVAL;
}
Handlers[native_signum] = nullptr;
#ifndef _WIN64
if (native_signum == SIGSEGV || native_signum == SIGBUS || native_signum == SIGILL) {