mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-03-26 12:38:32 -06:00
fixed an issue in sceKernelRemoveExceptionHandler (#4086)
* fixed an issue in sceKernelRemoveExceptionHandler * fixed comment
This commit is contained in:
parent
89e74828e6
commit
50d5ce9a83
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user