_user_wait_for_team() no longer tries to copy the return code if its storage location is NULL.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8561 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
f947748c74
commit
c06b6654f3
@ -981,7 +981,7 @@ _user_wait_for_team(team_id id, status_t *_userReturnCode)
|
||||
return B_BAD_ADDRESS;
|
||||
|
||||
status = wait_for_team(id, &returnCode);
|
||||
if (status >= B_OK) {
|
||||
if (status >= B_OK && _userReturnCode != NULL) {
|
||||
if (user_memcpy(_userReturnCode, &returnCode, sizeof(returnCode)) < B_OK)
|
||||
return B_BAD_ADDRESS;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user