mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-21 12:05:23 +00:00
Do not allow SYS_SYNC_PRIORITY_INHERIT in sys_semaphore_create (EINVAL)
This commit is contained in:
parent
960c8e6538
commit
62414cee15
1 changed files with 1 additions and 4 deletions
|
@ -31,10 +31,7 @@ error_code sys_semaphore_create(ppu_thread& ppu, vm::ptr<u32> sem_id, vm::ptr<sy
|
|||
|
||||
const u32 protocol = attr->protocol;
|
||||
|
||||
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;
|
||||
|
|
Loading…
Add table
Reference in a new issue