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:
Marcus Overhagen 2006-01-15 13:26:18 +00:00
parent ade091f23e
commit 7c446ef048
1 changed files with 1 additions and 1 deletions

View File

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