In wait_for_thread allow userReturnCode to be NULL regardless whether NULL is a valid IS_USER_ADDRESS
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15946 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
ade091f23e
commit
7c446ef048
|
@ -2089,7 +2089,7 @@ _user_wait_for_thread(thread_id id, status_t *userReturnCode)
|
|||
status_t returnCode;
|
||||
status_t status;
|
||||
|
||||
if (!IS_USER_ADDRESS(userReturnCode))
|
||||
if (userReturnCode != NULL && !IS_USER_ADDRESS(userReturnCode))
|
||||
return B_BAD_ADDRESS;
|
||||
|
||||
status = wait_for_thread(id, &returnCode);
|
||||
|
|
Loading…
Reference in New Issue