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:
Fabian Schaffert 2014-11-16 14:43:58 +01:00
parent 1ef01be4b5
commit 00e0e85793
1 changed files with 1 additions and 1 deletions

View File

@ -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)