Quick fix

Addresses the newest review and appears to fix issues caused in games by my previous commit.
This commit is contained in:
Stephen Miller 2024-08-14 11:25:11 -05:00
parent 76a76350c6
commit a381693501

View File

@ -1087,7 +1087,7 @@ int PS4_SYSV_ABI scePthreadAttrGetstack(ScePthreadAttr* attr, void** addr, size_
} }
int PS4_SYSV_ABI scePthreadAttrSetstack(ScePthreadAttr* attr, void* addr, size_t size) { int PS4_SYSV_ABI scePthreadAttrSetstack(ScePthreadAttr* attr, void* addr, size_t size) {
if (attr == nullptr || *attr == nullptr || addr == nullptr || size > 0x4000) { if (attr == nullptr || *attr == nullptr || addr == nullptr || size < 0x4000) {
return ORBIS_KERNEL_ERROR_EINVAL; return ORBIS_KERNEL_ERROR_EINVAL;
} }
int result = pthread_attr_setstack(&(*attr)->pth_attr, addr, size); int result = pthread_attr_setstack(&(*attr)->pth_attr, addr, size);