mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-21 03:55:32 +00:00
Fixes return value of sys_semaphore_create()
In case of att.addr() being NULL, CELL_EFAULT must be returnd and not CELL_EINVAL, according to the corresponding ps3autotest.
This commit is contained in:
parent
1ef01be4b5
commit
00e0e85793
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ s32 sys_semaphore_create(vm::ptr<u32> sem, vm::ptr<sys_semaphore_attribute> attr
|
|||
|
||||
if (attr.addr() == NULL) {
|
||||
sys_semaphore.Error("sys_semaphore_create(): An invalid argument value is specified (attr_addr=0x%x)", attr.addr());
|
||||
return CELL_EINVAL;
|
||||
return CELL_EFAULT;
|
||||
}
|
||||
|
||||
if (max_count <= 0 || initial_count > max_count || initial_count < 0)
|
||||
|
|
Loading…
Add table
Reference in a new issue