From 62414cee158cf24d4696d9a50688ee9a66f73a36 Mon Sep 17 00:00:00 2001 From: Eladash Date: Sun, 18 Aug 2019 00:40:04 +0300 Subject: [PATCH] Do not allow SYS_SYNC_PRIORITY_INHERIT in sys_semaphore_create (EINVAL) --- rpcs3/Emu/Cell/lv2/sys_semaphore.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/rpcs3/Emu/Cell/lv2/sys_semaphore.cpp b/rpcs3/Emu/Cell/lv2/sys_semaphore.cpp index e766830384..ae02a96703 100644 --- a/rpcs3/Emu/Cell/lv2/sys_semaphore.cpp +++ b/rpcs3/Emu/Cell/lv2/sys_semaphore.cpp @@ -31,10 +31,7 @@ error_code sys_semaphore_create(ppu_thread& ppu, vm::ptr sem_id, vm::ptrprotocol; - if (protocol == SYS_SYNC_PRIORITY_INHERIT) - sys_semaphore.warning("sys_semaphore_create(): SYS_SYNC_PRIORITY_INHERIT"); - - if (protocol != SYS_SYNC_FIFO && protocol != SYS_SYNC_PRIORITY && protocol != SYS_SYNC_PRIORITY_INHERIT) + if (protocol != SYS_SYNC_FIFO && protocol != SYS_SYNC_PRIORITY) { sys_semaphore.error("sys_semaphore_create(): unknown protocol (0x%x)", protocol); return CELL_EINVAL;